DisabledLocalClosureContainer
Provides LocalClosureContainer that ignores local changes and returns closure.
Constructors
Functions
Returns closure with local changes applied.
Returns Element associated with the key or throws MissingClosureElementException.
Returns a closure without the element with a given key
Registers a new frame that creates a new hierarchy of local changes.
Registers local change of a closure.
Removes a frame along with local changes that occurred.
Undo local change associated with a slot
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.