Due to the expect in Slab::unique_iter, the function panics when used on an empty slab.
Trying to use this as a way to speed up a fork of async_executor, which currently uses Mutex<slab::Slab<Waker>>, but a correct Drop impl requires at the minimum a iterator over the entire slab, and preferably a draining iterator.
Due to the
expect
inSlab::unique_iter
, the function panics when used on an empty slab.Trying to use this as a way to speed up a fork of
async_executor
, which currently usesMutex<slab::Slab<Waker>>
, but a correctDrop
impl requires at the minimum a iterator over the entire slab, and preferably a draining iterator.