AsyncAutoResetEvent Class
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.
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.