1
0
Fork 0
forked from wry/wry

runtime: replace epoll by io-uring

This commit is contained in:
Julian Orth 2022-05-12 22:50:33 +02:00
parent 98cc85e2d3
commit 9416efeabe
21 changed files with 173 additions and 742 deletions

View file

@ -49,6 +49,10 @@ impl<T> AsyncQueue<T> {
mem::take(&mut *self.data.borrow_mut());
self.waiter.take();
}
pub fn is_empty(&self) -> bool {
self.data.borrow_mut().is_empty()
}
}
pub struct AsyncQueuePop<'a, T> {