Can anyone point me to a type in Rust that -doesn't- implement Unpin? So far every type I've come across is Unpin. The exception to this rule seems to be Future's that capture a stack-frame...
-
-
There is a strategy to poll... my_socket.recv(...).poll(cx)
2 replies 1 retweet 1 like -
Oh... man, that's way simpler that what I did. Thanks for the tip! I guess it's not obvious to me that it's ok to just drop the returned Future on a Poll::Pending result. I wonder if that can be explicitly documented?
1 reply 0 retweets 0 likes
It is kind of a hack and only works w/ stateless async fn (of which most of Tokio's APIs are).
10:02 AM - 17 Sep 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.