initCoroutineScopeForApplicationContext

suspend fun initCoroutineScopeForApplicationContext(coroutineScope: CoroutineScope? = null): CoroutineScope

Initialize a new CoroutineScope which can hold ApplicationContext for all coroutines that use this scope

Return

Parameters

coroutineScope

if any existing coroutineScope passed then a new coroutineScope is created from that param and init for holding ApplicationContext