[go: up one dir, main page]

Function futures_util::sink::flush [] [src]

pub fn flush<S: Sink>(sink: S) -> Flush<S>

A future that completes when the sink has finished processing all pending requests.

The sink itself is returned after flushing is complete; this adapter is intended to be used when you want to stop sending to the sink until all current requests are processed.