use join function instead of macro

This commit is contained in:
AF 2023-06-28 12:11:45 +00:00
parent f1bef0ed2c
commit 0e8dddfa21

View File

@ -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))
}
}