rust/src/test/run-pass/task-comm-1.rs

16 lines
232 B
Rust
Raw Normal View History

use std;
import std::task::spawn;
2011-08-12 19:36:52 -05:00
import std::task::join_id;
2011-07-27 07:19:39 -05:00
fn main() { test00(); }
2011-07-27 07:19:39 -05:00
fn start() { log "Started / Finished task."; }
fn test00() {
let f = start;
let t = spawn(f);
join_id(t);
log "Completing.";
}