TaskExt.Delay Method (Single, CancellationToken)

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

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

Syntax

C#

public static Task Delay(
	float seconds,
	CancellationToken ct = default
)

Parameters

 

seconds
Type: System.Single
Number of seconds 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