15 lines
235 B
Rust
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.");
|
|
}
|