newCoroutineContext

common
fun CoroutineScope.newCoroutineContext(context: CoroutineContext): CoroutineContext

Creates a context for the new coroutine. It installs Dispatchers.Default when no other dispatcher or ContinuationInterceptor is specified, and adds optional support for debugging facilities (when turned on).

js
fun CoroutineScope.newCoroutineContext(context: CoroutineContext): CoroutineContext

Creates context for the new coroutine. It installs Dispatchers.Default when no other dispatcher nor ContinuationInterceptor is specified, and adds optional support for debugging facilities (when turned on).

See DEBUG_PROPERTY_NAME for description of debugging facilities on JVM.

Sources

common source
Link copied to clipboard
js source
Link copied to clipboard
jvm source
Link copied to clipboard