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."],[[["This webpage details the `NoOpScheduler` class, a part of the `Google.Api.Gax.Testing` namespace, designed for testing scenarios within the .NET environment."],["`NoOpScheduler` implements the `IScheduler` interface but does not introduce any actual delays, making it suitable for tests where timing is not critical."],["The class provides a `Delay` method that accepts a `TimeSpan` and a `CancellationToken`, although it ignores the `TimeSpan` and only checks if the `CancellationToken` has been triggered, completing nearly immediately."],["Available versions of `NoOpScheduler` range from 3.2.0 to the latest version 4.10.0, which is the most recent release."],["The `SchedulerExtensions.Sleep` method, an extension method, is also covered here, with details on its functionality and parameters."]]],[]]