Skip to content

Commit 9c33ef5

Browse files
committed
auto merge of #8828 : brson/rust/randomness, r=thestinger
The new scheduler is not currently that random.
2 parents 64ed372 + d923f75 commit 9c33ef5

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

doc/tutorial-tasks.md

-15
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,6 @@ do spawn {
113113
}
114114
~~~
115115

116-
By default, the scheduler multiplexes tasks across the available cores, running
117-
in parallel. Thus, on a multicore machine, running the following code
118-
should interleave the output in vaguely random order.
119-
120-
~~~
121-
# use std::io::print;
122-
# use std::task::spawn;
123-
124-
for child_task_number in range(0, 20) {
125-
do spawn {
126-
print(fmt!("I am child number %d\n", child_task_number));
127-
}
128-
}
129-
~~~
130-
131116
## Communication
132117

133118
Now that we have spawned a new task, it would be nice if we could

0 commit comments

Comments
 (0)