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

15 lines
235 B
Rust
Raw Normal View History

use std;
import task::spawn_joinable;
import task::join;
2011-07-27 07:19:39 -05:00
fn main() { test00(); }
2012-01-04 23:14:53 -06:00
fn start() { #debug("Started / Finished task."); }
fn test00() {
2012-01-04 23:14:53 -06:00
let t = spawn_joinable {|| start(); };
join(t);
#debug("Completing.");
}