Method

WaitTimeAsync

Set the task with the special timeout.

await task.WaitTimeAsync(TimeSpan.FromSeconds(10))