DispatchCoroutineScope
Default CoroutineScope associated with a store. By default, the store contains a MainScope and it can be replaced at store creation by adding it into a DispatchClosure. It can be accessed by coroutineScope extension property. Tools provided by this library most likely use this scope to launch a coroutine.
Constructors
Types
Functions
Returns Element associated with the key or throws MissingClosureElementException.
Returns a closure without the element with a given key
Returns elements form this DispatchClosure as a Map.
Properties
Extensions
Launches a foreground job using this closure. By default, it's launched in a scope provided by DispatchCoroutineScope. This behaviour might be changed by dispatchJobIn or joinDispatchJob. Because this function uses local closure, calling it outside dispatch should not be done, because it might result in unexpected behaviour.
Returns this closure with local changes.
Runs block that must register a foreground job. It adds SingleForegroundJobRegistry to local closure to allow proper job registration. Local closure change creates a new frame if newFrame is true.
Changes LocalClosureContainer with a given closure for a time of block execution.