Commit
30ba384de8578b2c28d6e77901af9f67a5046bf6
by noreplyImprove conditional waiting and shutdown handling (#2269)
* Make use of conditional variables instead of polling loops
* Add awaitShutdown
* Improve shutdown logic to allow awaitShutdown to work
* Fire ShutdownEvent when requester is also shutdown
* Ensure shutdown is idempotent
(commit: 30ba384)