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
@kornelski I think the prefered usage is using pin_mut or tokio::pin but I think we could shoutout box::pin in the docs, would you possibly be able to PR this? :)
Requiring
pin_mut!(s);
at the usage site may be efficient, but it is an awkward requirement for users of such API.I've found that wrapping returned stream in
Box::pin
makes it "just work". I suspect that for network-bound streams the overhead will be negligible.Could you mention this alternative in the docs?
The text was updated successfully, but these errors were encountered: