You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that async traits are stable, we may want to consider filing a patch to use them. Not sure yet if we should merge it, but we should at least try it out.
For Join it should not be an AFIT, but instead use an impl Future as its associated type.
The text was updated successfully, but these errors were encountered:
// most traits like thisimpl<A:Future,B:Future>Racefor(A,B){asyncfnrace(self) -> (A::Output,B::Output);}// but `Join` should be like this...impl<A:Future,B:Future>Joinfor(A,B){typeFuture = implFuture<Output = (A::Output,B::Output)>;fnjoin(self) -> Self::Future;}// ... so that we can implement it in std like thisimpl<A:Future,B:Future>IntoFuturefor(A,B){typeIntoFuture = implFuture<Output = (A::Output,B::Output)>;fninto_future(self) -> Self::IntoFuture;}
Now that async traits are stable, we may want to consider filing a patch to use them. Not sure yet if we should merge it, but we should at least try it out.
For
Join
it should not be an AFIT, but instead use animpl Future
as its associated type.The text was updated successfully, but these errors were encountered: