TaskExt.Delay Method (Int32, CancellationToken)

Creates an awaitable task that finishes after a given amount of milliseconds.

Namespace: UltimateXR.Extensions.System.Threading
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Task Delay(
	int milliseconds,
	CancellationToken ct = default
)


Parameters

 

milliseconds
Type: System.Int32
Number of milliseconds to wait
ct (Optional)
Type: System.Threading.CancellationToken
Optional cancellation token, to cancel the task

Return Value

Type: Task
Awaitable task

See Also

Reference

TaskExt Class
Delay Overload
UltimateXR.Extensions.System.Threading Namespace