tokio icon indicating copy to clipboard operation
tokio copied to clipboard

Documentation for interactive stdio

Open Darksonn opened this issue 1 year ago • 0 comments

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.

Darksonn avatar Aug 23 '22 17:08 Darksonn