rollup merge of #17292 : thestinger/tasks
This commit is contained in:
commit
9dfcb41926
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ fn partial_sum(start: uint) -> f64 {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
let mut futures = Vec::from_fn(1000, |ind| Future::spawn( proc() { partial_sum(ind) }));
|
||||
let mut futures = Vec::from_fn(200, |ind| Future::spawn( proc() { partial_sum(ind) }));
|
||||
|
||||
let mut final_res = 0f64;
|
||||
for ft in futures.iter_mut() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue