You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [CoroutineScope] tied to the [Application], allowing executing of tasks which should
382
-
* execute as long as the app is running
383
-
*
384
-
* This scope is bound by default to [Dispatchers.Main.immediate][kotlinx.coroutines.MainCoroutineDispatcher.immediate].
385
-
* Use an alternate dispatcher if the main thread is not required: [Dispatchers.Default] or [Dispatchers.IO]
386
-
*
387
-
* This scope will not be cancelled; exceptions are handled by [SupervisorJob]
388
-
*
389
-
* See: [Operations that shouldn't be cancelled in Coroutines](https://medium.com/androiddevelopers/coroutines-patterns-for-work-that-shouldnt-be-cancelled-e26c40f142ad#d425)
390
-
*
391
-
* This replicates the manner which `lifecycleScope`/`viewModelScope` is exposed in Android
392
-
*/
393
-
// lazy init required due to kotlinx-coroutines-test 1.10.0:
394
-
// Main was accessed when the platform dispatcher was absent and the test dispatcher
395
-
// was unset
396
-
val applicationScope by lazy { CoroutineScope(SupervisorJob() +Dispatchers.Main.immediate) }
397
-
398
378
/**
399
379
* A [SharedPreferencesProvider] which does not require [onCreate] when run from tests
0 commit comments