defaultFactory

fun defaultFactory(coroutineName: String, executor: Executor): CoroutineScopeFactory(source)

Creates a new coroutine scope factory out of an executor.

Parameters

coroutineName

The name of the coroutines

executor

The executor running the coroutines

See also


Creates a new coroutine scope factory.

Parameters

name

The base name of the threads and coroutines, will be prefixed by the number if corePoolSize 1

corePoolSize

The number of threads to keep in the pool, even if they are idle

See also