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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eIScheduler\u003c/code\u003e interface, an abstraction for scheduler operations designed to enhance testability within the \u003ccode\u003eGoogle.Api.Gax\u003c/code\u003e namespace, found in the \u003ccode\u003eGoogle.Api.Gax.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eIScheduler\u003c/code\u003e interface is distinct from \u003ccode\u003eTaskScheduler\u003c/code\u003e, as it focuses on introducing delays rather than thread assignment.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method within \u003ccode\u003eIScheduler\u003c/code\u003e is \u003ccode\u003eDelay(TimeSpan, CancellationToken)\u003c/code\u003e, which creates a task that completes after a specified delay, taking into account a provided cancellation token.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage also documents the \u003ccode\u003eSchedulerExtensions.Sleep\u003c/code\u003e method, an extension method related to the \u003ccode\u003eIScheduler\u003c/code\u003e interface, allowing for the scheduler to pause execution for a certain \u003ccode\u003eTimeSpan\u003c/code\u003e while checking for a \u003ccode\u003eCancellationToken\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage references multiple versions of the \u003ccode\u003eGoogle.Api.Gax\u003c/code\u003e library, with version 4.10.0 being the latest, and the current page detailing version 4.2.0.\u003c/p\u003e\n"]]],[],null,[]]