On Monday, 29 June 2020 at 12:25:16 UTC, Steven Schveighoffer wrote:
On 6/29/20 5:14 AM, ichneumwn wrote:
[...]

Not in the standard library. Such things require an event framework, because there is no OS-agnostic provided mechanism to sleep on all these things at once.

I recommend looking through code.dlang.org. I found these:

https://code.dlang.org/packages/libasync
https://code.dlang.org/packages/eventcore
https://code.dlang.org/packages/mecca (this seems very underdocumented, but I know it provides such a system)

[...]

I don't know the correct way to solve this, I've done it in the past by creating a file descriptor that can be waited on to wake up the target along with any other file descriptors being waited on.

-Steve

Thanks for the pointers Steve!

Reply via email to