An implementation of IScheduler that doesn't actually delay. This is useful for tests
which aren't interested in precise timing, but just want to be able to use a scheduler.
For more fine-grained control, use FakeScheduler.
public Task Delay(TimeSpan delay, CancellationToken cancellationToken)
Returns a task that will complete "nearly immediately": there's no set delay, but the task
yields before completing, avoiding synchronous execution leading to subtle bugs. The cancellation
token passed in is observed, causing an exception if it's already canceled.
[[["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 `NoOpScheduler` class is an implementation of `IScheduler` designed for testing purposes, particularly when precise timing is not a critical factor."],["`NoOpScheduler` does not introduce any actual delays, which makes it ideal for tests that require the use of a scheduler without specific timing constraints."],["For more complex timing control during testing, the `FakeScheduler` can be used instead of `NoOpScheduler`."],["The `Delay` method in `NoOpScheduler` returns a task that completes almost instantly after yielding, but does not introduce a set delay, and it monitors for cancellation requests."],["The `NoOpScheduler` class has multiple available versions, ranging from version 3.2.0 to the latest version 4.10.0."]]],[]]