In reply to @demotomohiro "Please read stdlib document:": thanks, another question: calling `peekChar` on `peekableOutputStream` hangs when the process is still running and no ther chars is written yet.