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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 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."]]],[]]