executeCallback method
Implementation
executeCallback(ClosureObject closureObject) async {
if (isExecuting) return;
isExecuting = true;
try {
await closureObject.closure?.call(closureObject.param);
print('Called closure $count');
} on Exception catch (e) {
debugPrint("This is an exception thrown by the Dart Callback in the call back dispatcher $e");
// rethrow;
} finally {
count++;
}
isExecuting = false;
removeTask(closureObject);
}