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"]],[["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-08-07 UTC."],[[["This webpage provides documentation for the `NoOpScheduler` class, which is an implementation of `IScheduler` designed for testing purposes within the Google.Api.Gax library."],["`NoOpScheduler` does not introduce any actual delay, making it suitable for tests where precise timing is not a concern, and it offers an alternative to `FakeScheduler` for more basic use cases."],["The `Delay` method in `NoOpScheduler` ignores the provided `TimeSpan` delay but still yields before completing, and observes the cancellation token, causing an exception if the token is already canceled."],["The class inherits members from the base `object` class and implements the `IScheduler` interface, with the relevant documentation and links provided for inherited members."],["`NoOpScheduler` has an extension method `Sleep` that can be utilized."]]],[]]