2011-06-23 20:49:29 -05:00
|
|
|
use std;
|
|
|
|
|
2011-12-13 18:25:51 -06:00
|
|
|
import task::spawn_joinable;
|
|
|
|
import task::join;
|
2011-06-23 20:49:29 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn main() { test00(); }
|
2010-07-19 16:05:18 -05:00
|
|
|
|
2012-01-04 23:14:53 -06:00
|
|
|
fn start() { #debug("Started / Finished task."); }
|
2010-07-19 16:05:18 -05:00
|
|
|
|
2011-08-17 13:44:35 -05:00
|
|
|
fn test00() {
|
2012-01-04 23:14:53 -06:00
|
|
|
let t = spawn_joinable {|| start(); };
|
2011-08-25 13:20:43 -05:00
|
|
|
join(t);
|
2011-12-22 16:42:52 -06:00
|
|
|
#debug("Completing.");
|
2011-08-17 13:44:35 -05:00
|
|
|
}
|