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
|
|
|
|
2011-10-13 23:23:07 -05:00
|
|
|
fn main() { let x = spawn_joinable(10, m::child); join(x); }
|
2011-08-11 00:45:43 -05:00
|
|
|
|
2011-07-27 07:48:34 -05:00
|
|
|
mod m {
|
2011-10-20 22:34:04 -05:00
|
|
|
fn child(&&i: int) { log i; }
|
2011-07-27 07:48:34 -05:00
|
|
|
}
|