JoinableTaskContext.IsMainThreadMaybeBlocked Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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