isolate_manager library

Functions

isolateWorker<R, P>(IsolateWorkerFunction<R, P> function) → 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 and workerConverter.
IsolateCustomFunction = FutureOr<void> Function(dynamic params)
Callback for the createCustom's function.
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 isolateCustomFunction that will be executed only one time before all events.
IsolateOnEventCallback<R, P> = FutureOr<R> Function(IsolateManagerController controller, P message)
A callback for the isolateCustomFunction that will be executed every time the message is received from the sendMessage or execute method.
IsolateOnInitialCallback<T> = void Function(IsolateManagerController controller, T initialParams)
A callback for the isolateCustomFunction that will be executed only one time before all events.
IsolateWorkerFunction<R, P> = FutureOr<R> Function(P message)
A function for the IsolateFunctionHelper.workerFunction.

Exceptions / Errors

IsolateException