interrupting a function

Alex sascha.orlov at gmail.com
Sat Nov 17 08:31:28 UTC 2018


On Saturday, 17 November 2018 at 08:17:36 UTC, Paul Backus wrote:
>
> You could run the calculation in another thread and use 
> std.concurrency.receiveTimeout [1] to stop waiting for the 
> result after a certain amount of time.
>
> [1] 
> https://dlang.org/phobos/std_concurrency.html#.receiveTimeout

Ah... yes. Thanks!


More information about the Digitalmars-d-learn mailing list