Class ThirdwebTask
- Namespace
- Thirdweb
- Assembly
- Thirdweb.dll
public static class ThirdwebTask
- Inheritance
-
ThirdwebTask
- Inherited Members
Methods
Delay(int, CancellationToken)
Simulates a delay without using Task.Delay or System.Threading.Timer, specifically designed to avoid clashing with WebGL threading.
public static Task Delay(int millisecondsDelay, CancellationToken cancellationToken = default)
Parameters
millisecondsDelay
intThe number of milliseconds to delay.
cancellationToken
CancellationTokenA cancellation token to cancel the delay.
Returns
- Task
A task that completes after the specified delay.