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