2011-06-23 20:49:29 -05:00
|
|
|
use std;
|
|
|
|
|
2011-10-13 23:23:07 -05:00
|
|
|
import std::task::spawn_joinable;
|
2011-08-25 13:20:43 -05:00
|
|
|
import std::task::join;
|
2011-06-23 20:49:29 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn main() { test00(); }
|
2010-07-19 16:05:18 -05:00
|
|
|
|
2011-10-20 22:34:04 -05:00
|
|
|
fn start(&&_i: ()) { log "Started / Finished task."; }
|
2010-07-19 16:05:18 -05:00
|
|
|
|
2011-08-17 13:44:35 -05:00
|
|
|
fn test00() {
|
2011-10-13 23:23:07 -05:00
|
|
|
let t = spawn_joinable((), start);
|
2011-08-25 13:20:43 -05:00
|
|
|
join(t);
|
2011-08-17 13:44:35 -05:00
|
|
|
log "Completing.";
|
|
|
|
}
|