createExecutor static method
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;
}