tokio
tokio copied to clipboard
Documentation for interactive stdio
The stdin function currently says:
For interactive uses, it is recommended to spawn a thread dedicated to user input and use blocking IO directly in that thread.
However, this does not give very many details. There should be an example in the docs of using tokio's stdio for a non-interactive usecase and one that properly uses a dedicated thread for interactive IO.