docs.unity.cn
    Show / Hide Table of Contents

    Class AsyncAutoResetEvent

    Simple implementation to be able to await in a task for an AutoResetEvent without blocking a thread.

    Inheritance
    Object
    AsyncAutoResetEvent
    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
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 26 April 2021