docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ITimeAwaiter

    An interface for awaiting a specific amount of time.

    Namespace: Unity.Cloud.Common
    Assembly: Unity.Cloud.Common.dll
    Syntax
    public interface ITimeAwaiter

    Methods

    AwaitTimeAsync(TimeSpan, CancellationToken)

    Awaits a specified amount of time.

    Declaration
    Task AwaitTimeAsync(TimeSpan delay, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    TimeSpan delay

    The amount of time to wait.

    CancellationToken cancellationToken

    The cancellation token for the operation.

    Returns
    Type Description
    Task

    A Task for the wait operation.

    Extension Methods

    TimeAwaiterExtensions.AwaitTimeAsync(ITimeAwaiter, int, CancellationToken)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)