Bug 14495 – executeInNewThread should return Thread

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-24T15:17:07Z
Last change time
2024-12-01T16:24:24Z
Assigned to
No Owner
Creator
Andrey Zherikov
Moved to GitHub: phobos#9659 →

Comments

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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9659 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB