CombineWorkerImpl class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
close ({bool waitForRemainingTasks = false })
→ Future <void >
Closes the current Worker.
CombineWorker is a singleton but under the hood it uses a worker manager instance
which can be closed and recreated. It may be useful if you want to cancel
all running and awaiting tasks (i. e. on user logout).
override
execute <T > (Task <T > action )
→ Future <T >
Executes given task
in combine isolate.
override
executeWith2Args <T , Q , C > (Task2 <T , Q , C > action , Q argument , C argument2 )
→ Future <T >
Executes given task
with given argument
and argument2
in combine isolate.
override
executeWith3Args <T , Q , C , A > (Task3 <T , Q , C , A > task , Q argument , C argument2 , A argument3 )
→ Future <T >
Executes given task
with given arguments in combine isolate.
override
executeWith4Args <T , Q , C , A , B > (Task4 <T , Q , C , A , B > task , Q argument , C argument2 , A argument3 , B argument4 )
→ Future <T >
Executes given task
with given arguments in combine isolate.
override
executeWith5Args <T , Q , C , A , B , D > (Task5 <T , Q , C , A , B , D > task , Q argument , C argument2 , A argument3 , B argument4 , D arguments5 )
→ Future <T >
Executes given task
with given arguments in combine isolate.
override
executeWithApply <T > (TaskApply task , List ? positionalArguments , [Map <Symbol , dynamic > ? namedArguments ])
→ Future <T >
Executes given task
with given arguments in combine isolate.
override
executeWithArg <T , Q > (Task1 <T , Q > action , Q argument )
→ Future <T >
Executes given task
with given argument
in combine isolate.
override
initialize ({int ? isolatesCount , int tasksPerIsolate = defaultTasksPerIsolate , WorkerInitializer ? initializer , String isolatesPrefix = defaultIsolatePrefix })
→ Future <void >
Initializes worker.
override
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited