#read stdin and write stdout simultaneously

2 messages · Page 1 of 1 (latest)

scenic totem
#

I'm writing a small cli and I need to read input while still being able to print.
but both std::io::stdin and tokio::io::stdin don't allow to print and read simultaneously
It must work in both windows and linux.

shell coral
#

use one task or thread for reading, and another for writing