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
Is it possible to check that TimeLimiter instance is available (await will return immediately) without actually awaiting it?
Use case: non-blocking rate limiting. A method is being called in a loop and if execution is attempted outside of allowed time constrains, method should just return immediately without blocking the caller.
TimeLimiter.GetAwaiter().IsCompleted is programmed to always return false, so is not an option.
The text was updated successfully, but these errors were encountered:
Is it possible to check that
TimeLimiter
instance is available (await will return immediately) without actually awaiting it?Use case: non-blocking rate limiting. A method is being called in a loop and if execution is attempted outside of allowed time constrains, method should just return immediately without blocking the caller.
TimeLimiter.GetAwaiter().IsCompleted
is programmed to always returnfalse
, so is not an option.The text was updated successfully, but these errors were encountered: