public static void Sleep(this IScheduler scheduler, TimeSpan delay, CancellationToken cancellationToken)
Simulates a synchronous delay by calling Delay(TimeSpan, CancellationToken) on
scheduler, and unwrapping any exceptions generated (typically cancellation).
[[["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 `SchedulerExtensions` class, which provides extension methods for the `IScheduler` interface in the `Google.Api.Gax` namespace."],["The latest version of `SchedulerExtensions` can be found in version 4.10.0, and it lists several previous versions, including 4.8.0, 4.4.0, 4.3.1, 4.2.0, 4.0.0, and 3.2.0."],["The `SchedulerExtensions` class inherits members from the base `object` class, such as `Equals`, `GetHashCode`, and `ToString`."],["The `Sleep` method within `SchedulerExtensions` simulates a synchronous delay using the `Delay` method on the provided scheduler, and can throw an `OperationCanceledException` if the provided `cancellationToken` is cancelled during sleep."]]],[]]