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
When using TimeoutStrategy.Aggressive, the Promise.race call is not await-ed causing the finally block to execute immediately, resulting in cts.cancel() being called before the timer runs out.
In my testing, adding an await before the Promise.race call results in the expected behavior of the cancellation being triggered from within the setTimeout call.
The text was updated successfully, but these errors were encountered:
TimeoutPolicy.ts (39)
When using
TimeoutStrategy.Aggressive
, thePromise.race
call is notawait
-ed causing thefinally
block to execute immediately, resulting incts.cancel()
being called before thetimer
runs out.In my testing, adding an
await
before thePromise.race
call results in the expected behavior of the cancellation being triggered from within thesetTimeout
call.The text was updated successfully, but these errors were encountered: