Returns a task which will complete after the given delay. Whether the returned
awaitable is configured to capture the current context or not is implementation-specific.
(A test implementation may capture the current context to enable reliable testing.)
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["This webpage details the `IScheduler` interface, an abstraction for scheduler operations designed for improved testability, found within the `Google.Api.Gax` namespace."],["The `IScheduler` interface, available from version 3.2.0 to the latest 4.10.0, is distinct from `TaskScheduler` in that it focuses on managing delays rather than assigning tasks to threads."],["The primary method within `IScheduler` is `Delay`, which returns a task that completes after a specified time delay, with considerations for a cancellation token and context capture."],["The `Delay` method takes a `TimeSpan` for the delay and a `CancellationToken`, ensuring the specified delay is non-negative and allowing for task cancellation before completion."],["An extension method `SchedulerExtensions.Sleep` is available for the IScheduler interface, which can also be used to specify a time delay and cancellation token."]]],[]]