I might be doing something wrong, but it genuinely suspect that the futures::Sink trait would be better off merging the poll_ready and start_send methods.
-
-
Going back here: I was wrong and the first API actually makes sense -- as
@stjepang pointed out. Oops oops; happy I asked tho.Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
The problem is that poll_send() consumes the item and doesn't return it back when not ready. If Poll::Pending is returned by the function, it's impossible to recover the item. With poll_ready() and start_send() we pass the item only once when we're sure sending will complete.
-
Dang.
End of conversation
New conversation -
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.