How to implement Canceleable spawn() from parent
Stanislav Blinov
stanislav.blinov at gmail.com
Sun Jun 28 23:39:07 UTC 2020
On Sunday, 28 June 2020 at 23:02:26 UTC, aberba wrote:
> 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.
Yup. You can also do a
auto sw = StopWatch(AutoStart.yes);
and not have to call `start` explicitly.
More information about the Digitalmars-d-learn
mailing list