As an optimization for preventing WaitSignaledAsync task execution to continue on Signal thread, cancelation was scheduled on another thread with 0ms timeout. This introduced a race condition where WaitSignaledAsync can succeed despite being signaled.
Eliminate this race condition and prevent WaitSignaledAsync to be resumed on Signal thread.
- is related to
-
CSHARP-3800 Fix flaky RetryableReadsProseTests.PoolClearedError_read_retryablity_test
- Closed