With#6779we removed unnecessary allocations from the timerwheel by wrapping it in anstd::sync::RwLock. Since theMutexused in this part of the project uses an abstraction inloom::sync::Mutexto get rid of the poisoning aspects ofstd::sync::Mutexthe same should probably be done for the used...
就像使用其他HashMap一样,通过调用len()。当然,您需要获取一个锁: