executeWithApply<T> method
Executes given task
with given arguments in combine isolate.
This future may complete with:
- CombineWorkerClosedException if you close worker
with
waitForRemainingTasks
flag set tofalse
. - UnsupportedIsolateArgumentError if you send to/from isolate some unsupported object like ReceivePort.
- an original exception thrown by the
task
.
Implementation
@override
Future<T> executeWithApply<T>(
TaskApply task,
List? positionalArguments, [
Map<Symbol, dynamic>? namedArguments,
]) {
return _effectiveWorkerManager.execute(
TaskWithApplyArgs(task, positionalArguments, namedArguments),
);
}