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-04-17 UTC."],[[["The `NoOpScheduler` class is an implementation of `IScheduler` designed for testing purposes, and does not introduce any actual delays."],["This class is particularly useful in scenarios where precise timing is not a concern, but the functionality of a scheduler is still needed for testing."],["`NoOpScheduler` offers a `Delay` method that returns a task, which will complete nearly immediately after yielding, ignoring the specified delay duration."],["This implementation of `IScheduler` is a sealed class, meaning it cannot be inherited from."],["The latest version of the `NoOpScheduler` is 4.10.0, with multiple other versions listed as well, including the version of the current content which is 3.2.0."]]],[]]