Condividi tramite


AsyncAutoResetEvent Class

Definition

An asynchronous implementation of an AutoResetEvent.

public ref class AsyncAutoResetEvent
[Windows::Foundation::Metadata::WebHostHidden]
class AsyncAutoResetEvent
[System.Diagnostics.DebuggerDisplay("Signaled: {signaled}")]
public class AsyncAutoResetEvent
[<System.Diagnostics.DebuggerDisplay("Signaled: {signaled}")>]
type AsyncAutoResetEvent = class
Public Class AsyncAutoResetEvent
Inheritance
AsyncAutoResetEvent
Attributes

Constructors

AsyncAutoResetEvent()

Initializes a new instance of the AsyncAutoResetEvent class that does not inline awaiters.

AsyncAutoResetEvent(Boolean)

Initializes a new instance of the AsyncAutoResetEvent class.

Methods

Set()

Unblocks one waiter or sets the signal if no waiters are present so the next waiter may proceed immediately.

WaitAsync()

Returns an awaitable that may be used to asynchronously acquire the next signal.

WaitAsync(CancellationToken)

Returns an awaitable that may be used to asynchronously acquire the next signal.

Applies to

Thread Safety

This type is thread-safe for all members.