rust/src/test/run-pass/task-comm-1.rs
2012-01-06 22:40:31 -08:00

15 lines
235 B
Rust

use std;
import task::spawn_joinable;
import task::join;
fn main() { test00(); }
fn start() { #debug("Started / Finished task."); }
fn test00() {
let t = spawn_joinable {|| start(); };
join(t);
#debug("Completing.");
}