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."],[[["The `SchedulerExtensions` class provides extension methods for the `IScheduler` interface, enhancing its functionality."],["The latest version available for `SchedulerExtensions` is 4.10.0, with previous versions also accessible."],["`SchedulerExtensions` inherits from the base `object` class and includes inherited members like `Equals`, `GetHashCode`, and `ToString`."],["The `Sleep` method in `SchedulerExtensions` simulates a synchronous delay by utilizing the `Delay` method of the `IScheduler`, handling potential exceptions such as cancellations."],["The `Sleep` method accepts an `IScheduler`, `TimeSpan` for the delay, and a `CancellationToken` for managing potential cancellation of the operation."]]],[]]