rust/src/test/run-pass/task-comm-1.rs
2011-10-20 20:34:04 -07:00

15 lines
241 B
Rust

use std;
import std::task::spawn_joinable;
import std::task::join;
fn main() { test00(); }
fn start(&&_i: ()) { log "Started / Finished task."; }
fn test00() {
let t = spawn_joinable((), start);
join(t);
log "Completing.";
}