IsolateManager<R, P>.createCustom constructor

IsolateManager<R, P>.createCustom(
  1. IsolateCustomFunction isolateFunction, {
  2. String workerName = '',
  3. Object? initialParams,
  4. int concurrent = 1,
  5. IsolateConverter<R>? converter,
  6. IsolateConverter<R>? workerConverter,
  7. 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;
}