d1857d30fc
This commit also moves yield and join to the standard library, as requested in #42. Join is currently a no-op though.
17 lines
181 B
Rust
17 lines
181 B
Rust
// xfail-stage0
|
|
// -*- rust -*-
|
|
|
|
use std;
|
|
|
|
import std::task::*;
|
|
|
|
fn main() {
|
|
auto other = spawn child();
|
|
log_err "1";
|
|
yield();
|
|
join(other);
|
|
}
|
|
|
|
fn child() {
|
|
log_err "2";
|
|
}
|