1
0
Fork 0
forked from wry/wry

autocommit 2022-01-06 19:08:32 CET

This commit is contained in:
Julian Orth 2022-01-06 19:08:32 +01:00
parent cbbc41a463
commit 4a939477a2
51 changed files with 3438 additions and 207 deletions

View file

@ -1,6 +1,7 @@
use std::cell::RefCell;
use std::collections::VecDeque;
use std::future::Future;
use std::mem;
use std::pin::Pin;
use std::task::{Context, Poll, Waker};
@ -35,6 +36,10 @@ impl<T> AsyncQueue<T> {
pub fn size(&self) -> usize {
self.data.borrow().len()
}
pub fn clear(&self) {
mem::take(&mut *self.data.borrow_mut());
}
}
pub struct AsyncQueuePop<'a, T> {