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-03-05 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 4.10.0, with older versions also accessible for review, such as 4.8.0, 4.4.0, 4.3.1, 4.2.0, 4.0.0, and 3.2.0."],["The `SchedulerExtensions` class includes a `Sleep` method that simulates a synchronous delay using the provided `IScheduler`, `TimeSpan`, and `CancellationToken`."],["The `Sleep` method takes an `IScheduler`, `TimeSpan`, and `CancellationToken`, and can potentially throw an `OperationCanceledException` if cancellation is requested during the delay."],["The `SchedulerExtensions` class inherits core functionalities from the base `Object` class, offering functionalities like `ToString`, `Equals`, `GetHashCode`, and `GetType`."]]],[]]