DispatcherDisableProcessing Method

Disable the event processing of the dispatcher.

Definition

Namespace: Avalonia.Threading
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public DispatcherDispatcherProcessingDisabled DisableProcessing()

Return Value

DispatcherDispatcherProcessingDisabled

Remarks

This is an advanced method intended to eliminate the chance of unrelated reentrancy. The effect of disabling processing is: 1) CLR locks will not pump messages internally. 2) No one is allowed to push a frame. 3) No message processing is permitted.

See Also