METHOD

Task.WaitAsync

Limits waiting without promising cancellation of original work.

Formal Syntax & Structure

csharp syntaxcsharp
task.WaitAsync(TimeSpan timeout)

Working Example

Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.await gate.Task.WaitAsync(TimeSpan.Zero)
C# & .NET Reference