From 5d6dbf3f262fabcb6cb920dd08be6f9d8df75d5c Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 25 Nov 2013 18:08:31 -0800 Subject: Improve the rt::thread module * Added doc comments explaining what all public functionality does. * Added the ability to spawn a detached thread * Added the ability for the procs to return a value in 'join' --- src/libstd/task/spawn.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/task/spawn.rs') diff --git a/src/libstd/task/spawn.rs b/src/libstd/task/spawn.rs index 6c1c28c9805..198fe596a89 100644 --- a/src/libstd/task/spawn.rs +++ b/src/libstd/task/spawn.rs @@ -139,7 +139,7 @@ pub fn spawn_raw(mut opts: TaskOpts, f: proc()) { let join_task = do Task::build_child(None) { debug!("running join task"); let thread_port = thread_port_cell.take(); - let thread: Thread = thread_port.recv(); + let thread: Thread<()> = thread_port.recv(); thread.join(); }; -- cgit 1.4.1-3-g733a5