There is a difference in drop behavior between scopes that were used to spawn futures and later drained and scopes that were created and never used. In the latter case, there is an unnecessary call to block_on.
This change addresses this by checking whether remaining is 0 inside drop.
There is a difference in drop behavior between scopes that were used to spawn futures and later drained and scopes that were created and never used. In the latter case, there is an unnecessary call to
block_on
.This change addresses this by checking whether
remaining
is 0 insidedrop
.