Class AsyncAutoResetEvent
Simple implementation to be able to await in a task for an AutoResetEvent without blocking a thread.
Namespace: UnityEngine.Reflect
Syntax
public class AsyncAutoResetEvent
Methods
Set()
Declaration
public void Set()
WaitAsync(CancellationToken)
Declaration
public Task WaitAsync(CancellationToken token = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | token |
Returns
Type | Description |
---|---|
Task |