On Sunday, 14 November 2021 at 12:01:36 UTC, Alexey wrote:
You just need two changes: - make `threadFunc` function static: `static void threadFunc()` - use `task` instead of `Task`: `auto t1 = task!threadFunc;`
Andrey Zherikov via Digitalmars-d-learn Sun, 14 Nov 2021 06:25:51 -0800
On Sunday, 14 November 2021 at 12:01:36 UTC, Alexey wrote:
You just need two changes: - make `threadFunc` function static: `static void threadFunc()` - use `task` instead of `Task`: `auto t1 = task!threadFunc;`