Yeah that looks fine, thanks! It would introduce a new dependency (async_io
) though, so I might go with Unblock
mentioned above. Let’s see what happens when I try to make the switch :)
(e) Ah I don’t think this really works, I’d need to wrap it in an Async
, but the docs explicitely mention not to use that with Stdin
: https://docs.rs/smol/latest/smol/struct.Async.html#supported-types. Unblock
it is then :)
Oh yeah, the docs even mention
Unblock<Stdin>
explicitely. Thanks a lot!