Async messages to a thread.
Sean Kelly
sean at invisibleduck.org
Mon Jul 29 10:21:58 PDT 2013
On Jul 29, 2013, at 8:28 AM, lindenk <ztaticnull at gmail.com> wrote:
>
> Ah, no I mean, what if do_some_blocking_function blocks for some indeterminate amount of time. I would like it to exit even when it is currently blocking (as it could be unpredictable when it will stop blocking).
Execute the blocking functions in a separate thread? Really, this sounds like the kind of thing futures are for. Alternately, maybe the sequence of blocking functions could call receive periodically, or maybe be executed in a fiber and yield periodically, etc.
More information about the Digitalmars-d-learn
mailing list