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 `SchedulerExtensions` class inherits from the `object` class and includes inherited members such as `ToString()`, `Equals()`, `GetHashCode()`, and others, as well as being located in the assembly `Google.Api.Gax.dll`."],["The primary method documented is `Sleep(IScheduler, TimeSpan, CancellationToken)`, which simulates a synchronous delay using the `IScheduler`'s `Delay` method and handles potential exceptions like `OperationCanceledException`."],["The page lists various versions of the Google.Api.Gax package, ranging from version 3.2.0 up to the latest version, 4.10.0, with version 4.3.1 being the one displayed."]]],[]]