Non-blocking keyboard input
Christian Köstlin
christian.koestlin at gmail.com
Wed Dec 27 15:12:06 UTC 2023
On Wednesday, 27 December 2023 at 14:41:05 UTC, Christian Köstlin
wrote:
> One option (not tested) should be to close stdin so that readln
> then returns null or something on eof.
>
> Shutting down threads is always tricky.
>
> It would be great if there would be one or two (perhaps one
> synchronous, one asynchronous) main io-frameworks for dlang
> (also as dub packages) that cover the most common use-cases.
>
>
> Kind regards,
> Christian
I tested this now, but it still blocks in readln ...
Kind regards,
Christian
More information about the Digitalmars-d-learn
mailing list