use join
function instead of macro
This commit is contained in:
parent
f1bef0ed2c
commit
0e8dddfa21
@ -8,7 +8,7 @@
|
||||
use std::{future::Future, pin::Pin};
|
||||
|
||||
use futures::{
|
||||
future::{select, Either, Shared},
|
||||
future::{join, select, Either, Shared},
|
||||
join, FutureExt,
|
||||
};
|
||||
|
||||
@ -65,7 +65,7 @@ impl<'a> ApplicativeLA2<'a> for FutureInstance {
|
||||
|
||||
impl<'a> ApplicativeTuple<'a> for FutureInstance {
|
||||
fn tuple<A: 'a, B: 'a>((fa, fb): (Self::F<A>, Self::F<B>)) -> Self::F<(A, B)> {
|
||||
Box::pin(async { join!(fa, fb) })
|
||||
Box::pin(join(fa, fb))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user