AppCoroutineScope

class AppCoroutineScope(dispatcher: CoroutineDispatcher = Dispatchers.Default, exceptionHandler: CoroutineExceptionHandler) : CoroutineScope

App-wide coroutine scope intended to be a singleton. It is supervisor scope, meaning any unhandled exception wont affect siblings. Also, it requires exception handler to exist meaning we want all un-handled exceptions to be caught.

Constructors

Link copied to clipboard
constructor(dispatcher: CoroutineDispatcher = Dispatchers.Default, exceptionHandler: CoroutineExceptionHandler)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
inline suspend fun <R> CoroutineScope.executeUseCase(block: () -> R): Result<R>