April 24, 2015 [Issue 14495] New: executeInNewThread should return Thread | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14495 Issue ID: 14495 Summary: executeInNewThread should return Thread Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: Phobos Assignee: nobody@puremagic.com Reporter: andrey.zherikov@gmail.com 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; } -- |
Copyright © 1999-2021 by the D Language Foundation