prepare<T> static method
IsolateManager<T>
prepare<T>(
- T isolateInput, {
- required void isolateEntryPoint(),
- required FromErrorMessage customMessageToError,
- Duration timeout = const Duration(seconds: 30),
Implementation
static IsolateManager<T> prepare<T> (T isolateInput,
{required void Function(IsolateParameter<T>) isolateEntryPoint,
required FromErrorMessage customMessageToError,
Duration timeout = const Duration(seconds: 30)})
{
final isolateParam = IsolateParameter (isolateInput);
final ih = IsolateHelper.spawn (isolateEntryPoint, isolateParam, customMessageToError: customMessageToError);
return IsolateManager._(ih, timeout: timeout);
}