Comment #0 by andrey.zherikov — 2015-04-24T15:17:07Z
executeInNewThread caller should have an access to created thread.
For example to set daemon thread:
import std.parallelism;
import core.thread;
void long_operation() { Thread.sleep(dur!("seconds")(5)); }
void main()
{
Thread task_thread = task!long_operation.executeInNewThread;
task_thread.isDaemon = true;
}
Comment #1 by robert.schadek — 2024-12-01T16:24:24Z