Using the `Sink` for writing in async?
swwu opened this issue · comments
Steven Wu commented
I noticed this library exposes the futures_sink::Sink
trait instead of the futures::sink::Sink
trait. Unlike the latter, the former seems to not support futures::sink::SinkExt
, which provides actual async methods for dumping things in, and there doesn't seem to be an equivalent convenience trait.
Is there currently a supported way to write to these in async contexts, by awaiting on some future, without directly interacting with the poll_
interface (and therefore having to manually manage polling/wakeups)?
Jon Gjengset commented
futures::Sink
is a re-export of futures_sink::Sink
, so they are exactly the same :)
As a result, both also support SinkExt
.