Immerse SDK
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

AsyncUtility.DelayAsync

public static Task DelayAsync(float secondDelay, CancellationToken token)

Async delay without using threading

Parameter Description
secondDelay Number of seconds to delay before returning
token A cancellation token to observe while waiting for the task to complete.

public static Task DelayAsync(float secondDelay)

Async delay without using threading

Parameter Description
secondDelay Number of seconds to delay before returning