public Task Delay(TimeSpan timeSpan, CancellationToken cancellationToken)
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 document provides information on the \u003ccode\u003eSystemScheduler\u003c/code\u003e class, a singleton implementation of \u003ccode\u003eIScheduler\u003c/code\u003e within the \u003ccode\u003eGoogle.Api.Gax\u003c/code\u003e namespace, version 4.3.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSystemScheduler\u003c/code\u003e class uses \u003ccode\u003eDelay(TimeSpan, CancellationToken)\u003c/code\u003e for scheduling tasks and inherits from the \u003ccode\u003eobject\u003c/code\u003e class, also implementing the \u003ccode\u003eIScheduler\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInstance\u003c/code\u003e property of \u003ccode\u003eSystemScheduler\u003c/code\u003e provides access to its singleton instance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDelay(TimeSpan, CancellationToken)\u003c/code\u003e method is available to create tasks that complete after a specified delay, with optional cancellation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSchedulerExtensions.Sleep\u003c/code\u003e is an extension method that is also related and can be found under the \u003ccode\u003eSystemScheduler\u003c/code\u003e documentation.\u003c/p\u003e\n"]]],[],null,[]]