2011-08-10 22:45:43 -07:00
|
|
|
use std;
|
2011-08-25 11:20:43 -07:00
|
|
|
import std::task::join;
|
|
|
|
import std::task::spawn_joinable;
|
|
|
|
|
2011-09-02 15:34:58 -07:00
|
|
|
fn main() { let x = spawn_joinable(bind m::child(10)); join(x); }
|
2011-08-10 22:45:43 -07:00
|
|
|
|
2011-07-27 14:48:34 +02:00
|
|
|
mod m {
|
2011-08-19 15:16:48 -07:00
|
|
|
fn child(i: int) { log i; }
|
2011-07-27 14:48:34 +02:00
|
|
|
}
|