Partager via


JoinableTaskContext.IsMainThreadMaybeBlocked Method

Definition

Gets a very likely value whether the main thread is blocked for the caller's completion. It is less accurate when the UI thread blocking task just starts and hasn't been blocked yet, or the dependency chain is just removed. However, unlike IsMainThreadBlocked(), this implementation is lock free, and faster in high contention scenarios.

public:
 bool IsMainThreadMaybeBlocked();
public bool IsMainThreadMaybeBlocked ();
member this.IsMainThreadMaybeBlocked : unit -> bool
Public Function IsMainThreadMaybeBlocked () As Boolean

Returns

Applies to