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-08-04 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` is available in version 4.10.0, with older versions also accessible, from 3.2.0 to 4.8.0."],["`SchedulerExtensions` inherits from the base `object` class, with relevant members like `ToString()`, `Equals()`, and `GetHashCode()`."],["The primary method within this class is `Sleep`, which simulates a synchronous delay using an `IScheduler` instance, accepting a `TimeSpan` for the duration and a `CancellationToken` for potential interruption."],["The `Sleep` method can throw an `OperationCanceledException` if the provided cancellation token is cancelled during the delay."]]],[]]