2011-08-11 00:45:43 -05:00
|
|
|
use std;
|
2011-08-13 17:20:11 -05:00
|
|
|
import std::task::join_id;
|
|
|
|
import std::task::_spawn;
|
2011-08-11 00:45:43 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { let x = _spawn(bind m::child(10)); join_id(x); }
|
2011-07-27 07:48:34 -05:00
|
|
|
mod m {
|
2011-08-19 17:16:48 -05:00
|
|
|
fn child(i: int) { log i; }
|
2011-07-27 07:48:34 -05:00
|
|
|
}
|