MainImmediateCoroutineScope
Factory function for a MainImmediateCoroutineScope with a DispatcherProvider. Dispatch defaults to the mainImmediate
property of the DispatcherProvider
.
See also
Parameters
Job to be used for the resulting CoroutineScope
. Uses a SupervisorJob if one is not provided.
DispatcherProvider to be used for the resulting CoroutineScope
. Uses DefaultDispatcherProvider.get if one is not provided.
Factory function for a MainImmediateCoroutineScope with a DispatcherProvider. Dispatch defaults to the mainImmediate
property of the DispatcherProvider
.
See also
Parameters
CoroutineContext to be used for the resulting CoroutineScope
. Any existing ContinuationInterceptor will be overwritten. If the CoroutineContext
does not already contain a DispatcherProvider
, DefaultDispatcherProvider.get will be added.