Delay Method

Task.Delay Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a Task that will complete after a time delay.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member Delay(Int32) Creates a Task that will complete after a time delay.
Public method Static member Delay(TimeSpan) Creates a Task that will complete after a time delay.
Public method Static member Delay(Int32, CancellationToken) Creates a Task that will complete after a time delay.
Public method Static member Delay(TimeSpan, CancellationToken) Creates a Task that will complete after a time delay.
Top

Show:
© 2017 Microsoft