newExecutor function
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);