2011-08-11 00:45:43 -05:00
|
|
|
use std;
|
2011-08-25 13:20:43 -05:00
|
|
|
import std::task::join;
|
2011-10-13 23:23:07 -05:00
|
|
|
import std::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-13 17:37:07 -05:00
|
|
|
fn# child(&&i: int) { log i; }
|
2011-07-27 07:48:34 -05:00
|
|
|
}
|