We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14b23be commit 5f183c6Copy full SHA for 5f183c6
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: d4a17caf1e6ee30a93edf6174ea5d41e3c2e3418
+refs/heads/master: 9742148e255abe4ed1e629c6e7af57d0c94fc0ed
trunk/src/test/run-pass/spawn-fn.rs
@@ -1,14 +1,14 @@
-// xfail-stage1
-// xfail-stage2
3
-// xfail-stage3
4
// -*- rust -*-
5
+use std;
+import std::task::yield;
+
6
fn x(s: str, n: int) { log s; log n; }
7
8
fn main() {
9
spawn x("hello from first spawned fn", 65);
10
spawn x("hello from second spawned fn", 66);
11
spawn x("hello from third spawned fn", 67);
12
let i: int = 30;
13
- while i > 0 { i = i - 1; log "parent sleeping"; yield; }
+ while i > 0 { i = i - 1; log "parent sleeping"; yield(); }
14
}
0 commit comments