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

15 lines
241 B
Rust
Raw Normal View History

use std;
import std::task::spawn_joinable;
import std::task::join;
2011-07-27 07:19:39 -05:00
fn main() { test00(); }
2011-10-20 22:34:04 -05:00
fn start(&&_i: ()) { log "Started / Finished task."; }
fn test00() {
let t = spawn_joinable((), start);
join(t);
log "Completing.";
}