Warning · Concurrency
If two events reference each other, concurrent waits acquire the same two locks in opposite orders.
Impact
Both calls can hang during setup, before polling or enforcing their timeouts.
Recommended action
Acquire discovered conditions in a consistent global order, such as by object identity.