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
We can store the future in OperatorFuture directly instead of Box<dyn Future>. And than, return FutureStat<impl Future<Output = Result<Metadata>>> instead.
No need for Box::pin() now!
Drawback is users can't store FutureStat anymore unless they use Box::pin(), and it's a breaking change.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
We can store the future in OperatorFuture directly instead of
Box<dyn Future>. And than, returnFutureStat<impl Future<Output = Result<Metadata>>>instead.No need for
Box::pin()now!Drawback is users can't store
FutureStatanymore unless they useBox::pin(), and it's a breaking change.Beta Was this translation helpful? Give feedback.
All reactions