2011-08-11 00:45:43 -05:00
|
|
|
use std;
|
2011-12-13 18:25:51 -06:00
|
|
|
import task::join;
|
|
|
|
import task::spawn_joinable;
|
2011-08-25 13:20:43 -05:00
|
|
|
|
2012-01-04 23:14:53 -06:00
|
|
|
fn main() { let x = spawn_joinable {|| m::child(10); }; join(x); }
|
2011-08-11 00:45:43 -05:00
|
|
|
|
2011-07-27 07:48:34 -05:00
|
|
|
mod m {
|
2011-12-22 19:53:53 -06:00
|
|
|
fn child(&&i: int) { log(debug, i); }
|
2011-07-27 07:48:34 -05:00
|
|
|
}
|