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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSchedulerExtensions\u003c/code\u003e class provides extension methods for the \u003ccode\u003eIScheduler\u003c/code\u003e interface, enhancing its functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for \u003ccode\u003eSchedulerExtensions\u003c/code\u003e is 4.10.0, with previous versions also accessible.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSchedulerExtensions\u003c/code\u003e inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and includes inherited members like \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSleep\u003c/code\u003e method in \u003ccode\u003eSchedulerExtensions\u003c/code\u003e simulates a synchronous delay by utilizing the \u003ccode\u003eDelay\u003c/code\u003e method of the \u003ccode\u003eIScheduler\u003c/code\u003e, handling potential exceptions such as cancellations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSleep\u003c/code\u003e method accepts an \u003ccode\u003eIScheduler\u003c/code\u003e, \u003ccode\u003eTimeSpan\u003c/code\u003e for the delay, and a \u003ccode\u003eCancellationToken\u003c/code\u003e for managing potential cancellation of the operation.\u003c/p\u003e\n"]]],[],null,[]]