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 async 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` that doesn't introduce any delays, making it suitable for tests where precise timing isn't critical."],["It is inherited from `Object` and implements the `IScheduler` interface, including methods such as `Delay(TimeSpan, CancellationToken)`."],["The `Delay` method of `NoOpScheduler` returns a task that completes almost immediately after yielding, disregarding the provided delay but respecting the cancellation token."],["For tests requiring more specific control over timing, `FakeScheduler` is recommended over `NoOpScheduler`."],["The `NoOpScheduler` class is located in the `Google.Api.Gax.Testing` namespace and is part of the `Google.Api.Gax.Testing.dll` assembly."]]],[]]