Share via


JoinableTaskContextNode Class

Definition

A customizable source of JoinableTaskFactory instances.

public ref class JoinableTaskContextNode
[Windows::Foundation::Metadata::WebHostHidden]
class JoinableTaskContextNode
public class JoinableTaskContextNode
type JoinableTaskContextNode = class
Public Class JoinableTaskContextNode
Inheritance
JoinableTaskContextNode

Constructors

JoinableTaskContextNode(JoinableTaskContext)

Initializes a new instance of the JoinableTaskContextNode class.

Properties

Context

Gets the inner wrapped context.

Factory

Gets the factory which creates joinable tasks that do not belong to a joinable task collection.

IsOnMainThread

Gets a value indicating whether the caller is executing on the main thread.

MainThread

Gets the main thread that can be shared by tasks created by this context.

Methods

CreateCollection()

Creates a collection for in-flight joinable tasks.

CreateDefaultFactory()

Creates a factory without a JoinableTaskCollection.

CreateFactory(JoinableTaskCollection)

Creates a joinable task factory that automatically adds all created tasks to a collection that can be jointly joined.

IsMainThreadBlocked()

Gets a value indicating whether the main thread is blocked for the caller's completion.

OnFalseHangDetected(TimeSpan, Guid)

Invoked when an earlier hang report is false alarm.

OnHangDetected(JoinableTaskContext+HangDetails)

Invoked when a hang is suspected to have occurred involving the main thread.

OnHangDetected(TimeSpan, Int32, Guid)

Invoked when a hang is suspected to have occurred involving the main thread.

RegisterOnHangDetected()

Registers with the inner JoinableTaskContext to receive hang notifications.

SuppressRelevance()

Conceals any JoinableTask the caller is associated with until the returned value is disposed.

Applies to

Thread Safety

This type is thread-safe for all members.