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/rt/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/rt/test.rs') diff --git a/src/libstd/rt/test.rs b/src/libstd/rt/test.rs index 867d997e98d..943b76dd1a0 100644 --- a/src/libstd/rt/test.rs +++ b/src/libstd/rt/test.rs @@ -336,7 +336,7 @@ pub fn spawntask_try(f: proc()) -> Result<(),()> { } /// Spawn a new task in a new scheduler and return a thread handle. -pub fn spawntask_thread(f: proc()) -> Thread { +pub fn spawntask_thread(f: proc()) -> Thread<()> { let f = Cell::new(f); -- cgit 1.4.1-3-g733a5