createExecutor static method

Future<Executor> createExecutor([
  1. int coreWorkerSize = 1
])

create an executor instance, coreWorkerSize is the number of isolates executing the task

Implementation

static Future<Executor> createExecutor([int coreWorkerSize = 1]) async {
  var executor = ExecutorLeader.noManually_(coreWorkerSize);
  await executor.init();
  return executor;
}