IsolateManager<R, P>.createCustom constructor
IsolateManager<R, P>.createCustom (
- IsolateCustomFunction isolateFunction, {
- String workerName = '',
- Object? initialParams,
- int concurrent = 1,
- IsolateConverter<
R> ? converter, - IsolateConverter<
R> ? workerConverter, - bool isDebug = false,
Create a new isolate with your own isolate function.
Implementation
IsolateManager.createCustom(
IsolateCustomFunction this.isolateFunction, {
this.workerName = '',
this.initialParams,
this.concurrent = 1,
this.converter,
this.workerConverter,
this.isDebug = false,
}) : isCustomIsolate = true {
// Set the debug log prefix.
IsolateContactor.debugLogPrefix = debugLogPrefix;
}