You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the Scheduler class (and extension method on ISenderContext) could accept an instance of TimeProvider, it would be possible to test it without actually waiting for the real time to pass.
This could be done by passing a TimeProvider to one of Task.Delays overloads, but it's only available in .NET 8+ (as is TimeProvider).
The text was updated successfully, but these errors were encountered:
If the
Scheduler
class (and extension method onISenderContext
) could accept an instance ofTimeProvider
, it would be possible to test it without actually waiting for the real time to pass.This could be done by passing a
TimeProvider
to one ofTask.Delay
s overloads, but it's only available in .NET 8+ (as isTimeProvider
).The text was updated successfully, but these errors were encountered: