Task.Delay Method

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: