On Sunday, 14 January 2024 at 13:41:26 UTC, Joe wrote:
This does not actually work on my computer. It still blocks.
Adam is no longer using mainstream D, and apparently not posting
on this forum.
I suggest you try to contact him via the arsd github page:
https://github.com/adamdruppe/arsd
On Wednesday, 27 December 2023 at 13:27:53 UTC, Adam D Ruppe
wrote:
On Wednesday, 27 December 2023 at 05:07:04 UTC, Joe wrote:
??? Surely there there is
a one liner library solution for this?
It is not one line because it needs a bit of setup (and
teardown
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
On Wednesday, 27 December 2023 at 05:07:04 UTC, Joe wrote:
??? Surely there there is a
one liner library solution for this?
I have a program that spawns a thread for debugging information
and uses the keyboard input which allows me to display the
informati
On Wednesday, 27 December 2023 at 05:07:04 UTC, Joe wrote:
??? Surely there there is a
one liner library solution for this?
It is not one line because it needs a bit of setup (and teardown,
but the objects' destructors do that for you) but it is close:
ht
??? Surely there there is a
one liner library solution for this?
I have a program that spawns a thread for debugging information
and uses the keyboard input which allows me to display the
information.
If I use getchar or readline then it blocks the thread