
This simplifies the code required to wait for cancellations to complete. The condition variable now reflects whether `active_transfers == 0`, and the associated lock must be held to decrement that count to zero.
This simplifies the code required to wait for cancellations to complete. The condition variable now reflects whether `active_transfers == 0`, and the associated lock must be held to decrement that count to zero.