2011-06-23 20:49:29 -05:00
|
|
|
use std;
|
|
|
|
|
2011-08-17 13:44:35 -05:00
|
|
|
import std::task::spawn;
|
2011-08-12 19:36:52 -05:00
|
|
|
import std::task::join_id;
|
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-07-27 07:19:39 -05:00
|
|
|
fn start() { log "Started / Finished task."; }
|
2010-07-19 16:05:18 -05:00
|
|
|
|
2011-08-17 13:44:35 -05:00
|
|
|
fn test00() {
|
|
|
|
let f = start;
|
|
|
|
let t = spawn(f);
|
|
|
|
join_id(t);
|
|
|
|
log "Completing.";
|
|
|
|
}
|