namedDefaultScope
Creates a CoroutineScope with incremental thread naming.
As per ScheduledThreadPoolExecutor, a fixed-size thread pool using corePoolSize threads will be used, but it is almost never a good idea to set a corePoolSize to zero because it may leave the pool without threads to handle tasks once they become eligible to run.
Parameters
The base name of the threads and coroutines, will be prefixed by the number if corePoolSize 1
The number of threads to keep in the pool, even if they are idle, must not be negative
The parent job used for coroutines which can be used to cancel all children, uses SupervisorJob by default
The CoroutineExceptionHandler used for handling uncaught exceptions, uses a logging handler which cancels the parent job on Error by default
Any additional context to add to the scope, uses EmptyCoroutineContext by default
Creates a CoroutineScope with incremental thread naming.
Parameters
The name of the coroutines
The executor running the coroutines
The parent job used for coroutines which can be used to cancel all children, uses SupervisorJob by default
The CoroutineExceptionHandler used for handling uncaught exceptions, uses a logging handler which cancels the parent job on Error by default
Any additional context to add to the scope, uses EmptyCoroutineContext by default