pub fn eof<E>() -> (Sender<E>, Receiver<E>)
Create closed bytes stream.
This method construct two objects responsible for bytes stream generation.