Skip to main content

eof

Function eof 

Source
pub fn eof<E>() -> (Sender<E>, Receiver<E>)
Expand description

Creates a byte stream that starts at EOF.

Data may still be added through the returned sender. The receiver yields that buffered data first and then completes.