newExecutor function

Executor newExecutor({
  1. required int concurrency,
})

Creates a new executor with the given concurrency. Uses isolates unless in debug mode

Implementation

Executor newExecutor({required int concurrency}) =>
    kDebugMode ? QueueExecutor() : PoolExecutor(concurrency: concurrency);