Task.Delay Method

.NET Framework (current version)
 

Creates a task that will complete after a time delay.

Namespace:   System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticDelay(Int32)

Creates a task that completes after a time delay.

System_CAPS_pubmethodSystem_CAPS_staticDelay(Int32, CancellationToken)

Creates a cancellable task that completes after a time delay.

System_CAPS_pubmethodSystem_CAPS_staticDelay(TimeSpan)

Creates a task that completes after a specified time interval.

System_CAPS_pubmethodSystem_CAPS_staticDelay(TimeSpan, CancellationToken)

Creates a cancellable task that completes after a specified time interval.

Return to top
Show: