How to implement Canceleable spawn() from parent

aberba karabutaworld at gmail.com
Sun Jun 28 23:08:32 UTC 2020


On Sunday, 28 June 2020 at 23:02:26 UTC, aberba wrote:
> On Sunday, 28 June 2020 at 14:23:01 UTC, Stanislav Blinov wrote:
>> On Sunday, 28 June 2020 at 13:29:08 UTC, aberba wrote:
>  Thanks.
>
> I believe this:
>
> StopWatch sw;
> sw.start;
>
>
> works becuse D structs are initialized by default, right?
> I've never actually done it this way. Little details.

So I checked receiveTimeout() when I was looking for what I could 
use. I wish there was an example in the docs.

https://dlang.org/library/std/concurrency/receive_timeout.html


More information about the Digitalmars-d-learn mailing list