Closed
Description
In sync std, you can lock stdin to ensure you maintain control of it. Something like:
let stdin = std::io::stdin();
let locked = stdin.lock();
Currently, there isn't a way to do the equivalent in async-std.
cc @yoshuawuyts
In sync std, you can lock stdin to ensure you maintain control of it. Something like:
let stdin = std::io::stdin();
let locked = stdin.lock();
Currently, there isn't a way to do the equivalent in async-std.
cc @yoshuawuyts