Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
task: fix panic when dropping
LocalSet
(#1843)
It turns out that the `Scheduler::release` method on `LocalSet`'s `Scheduler` *is* called, when the `Scheduler` is dropped with tasks still running. Currently, that method is `unreachable!`, which means that dropping a `LocalSet` with tasks running will panic. This commit fixes the panic, by pushing released tasks to `pending_drop`. This is the same as `BasicScheduler`. Fixes #1842
- Loading branch information