Refactor to async closures.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
cca0f20148
commit
c8d35cca57
36 changed files with 78 additions and 80 deletions
|
|
@ -66,7 +66,7 @@ where
|
|||
|
||||
let b = Arc::new(Mutex::new(b.peekable()));
|
||||
a.map(move |ai| (ai, b.clone()))
|
||||
.filter_map(|(ai, b)| async move {
|
||||
.filter_map(async move |(ai, b)| {
|
||||
let mut lock = b.lock().await;
|
||||
while let Some(bi) = Pin::new(&mut *lock)
|
||||
.next_if(|bi| *bi <= ai)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue