diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-11-25 18:08:31 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-11-27 09:53:48 -0800 |
| commit | 5d6dbf3f262fabcb6cb920dd08be6f9d8df75d5c (patch) | |
| tree | 8218728771f9eb50c20a621736c0dd4e682d15b3 /src/libstd/rt/test.rs | |
| parent | ed86b48cc9a8349e8e99de5f013f68f1edff4121 (diff) | |
| download | rust-5d6dbf3f262fabcb6cb920dd08be6f9d8df75d5c.tar.gz rust-5d6dbf3f262fabcb6cb920dd08be6f9d8df75d5c.zip | |
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'
Diffstat (limited to 'src/libstd/rt/test.rs')
| -rw-r--r-- | src/libstd/rt/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
