Replacement for sink::Wait?

In futures v0.1 there was Wait combinator that allowed sending to futures' mpsc channel in a blocking fashion. It's gone in futures v0.3. What's the replacement?

I have an async Stream to write to, and I need an adapter that allows code using synchronous io::Write to write to it, with some backpressure support.

An executor typically has a block_on function or method. In order of my experience with each library:

Whichever option you pick, I'd suggest using the one provided by your executor.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.