Crate multi_producer_sink [] [src]

Provides a multi-producer-sink, that allows multiple, independent handles to write to the same underlying sink.

Structs

Done

A future that signals when the wrapped sink is done.

MPS

A multi producer sink (MPS). This is a cloneable handle to a single sink of type S, and each handle can be used to write to the inner sink.

Functions

mps

Create a new MPS, wrapping the given sink. Also returns a future that emits the wrapped sink once the last MPS handle has been closed, dropped or if the wrapped sink errored.