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

Reply via email to