isolate_manager library
Classes
Enums
- IsolateState
- Isolate state
Functions
-
isolateWorker<
R, P> (IsolateWorkerFunction< R, P> function, {FutureOr<void> onInitial()?}) → Future<void> -
Create a worker in your
main
.
Typedefs
-
IsolateCallback<
R> = FutureOr< bool> Function(R value) - Type for the callback of the isolate.
-
IsolateConverter<
R> = R Function(dynamic) -
The type of the
converter
andworkerConverter
. -
IsolateCustomFunction
= IsolateFunction<
void, dynamic> -
Callback for the
createCustom
'sfunction
. -
IsolateFunction<
R, P> = FutureOr< R> Function(P params) -
The type of the
function
of the.create
method. -
IsolateOnDisposeCallback<
T> = void Function(IsolateManagerController controller) - A callback for the IsolateManagerFunction.customFunction that will be executed only one time before all events.
-
IsolateOnEventCallback<
R, P> = FutureOr< R> Function(IsolateManagerController controller, P message) -
A callback for the IsolateManagerFunction.customFunction that will be executed every time
the
message
is received from thesendMessage
orexecute
method. -
IsolateOnInitialCallback<
T> = FutureOr< void> Function(IsolateManagerController controller, T initialParams) - A callback for the IsolateManagerFunction.customFunction that will be executed only one time before all events.
-
IsolateWorkerFunction<
R, P> = FutureOr< R> Function(P message) -
A function for the
IsolateManagerFunction.workerFunction
.