fix fallout from future de-mode-ing.
This commit is contained in:
parent
20d622835a
commit
9c034464fe
6 changed files with 7 additions and 7 deletions
|
|
@ -20,7 +20,7 @@ fn test00() {
|
|||
}
|
||||
|
||||
// Try joining tasks that have already finished.
|
||||
future::get(option::unwrap(result));
|
||||
future::get(&option::unwrap(result));
|
||||
|
||||
debug!{"Joined task."};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ fn test00() {
|
|||
}
|
||||
|
||||
// Join spawned tasks...
|
||||
for results.each |r| { future::get(r); }
|
||||
for results.each |r| { future::get(&r); }
|
||||
|
||||
debug!{"Completed: Final number is: "};
|
||||
log(error, sum);
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ fn test00() {
|
|||
i += 1;
|
||||
}
|
||||
|
||||
future::get(option::unwrap(result));
|
||||
future::get(&option::unwrap(result));
|
||||
|
||||
assert (sum == number_of_messages * (number_of_messages - 1) / 2);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ fn test00() {
|
|||
while i < number_of_messages { sum += recv(po); i = i + 1; }
|
||||
}
|
||||
|
||||
for results.each |r| { future::get(r); }
|
||||
for results.each |r| { future::get(&r); }
|
||||
|
||||
debug!{"Completed: Final number is: "};
|
||||
assert (sum ==
|
||||
|
|
@ -136,7 +136,7 @@ fn test06() {
|
|||
}
|
||||
|
||||
|
||||
for results.each |r| { future::get(r); }
|
||||
for results.each |r| { future::get(&r); }
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ fn main() {
|
|||
error!{"2"};
|
||||
yield();
|
||||
error!{"3"};
|
||||
future::get(option::unwrap(result));
|
||||
future::get(&option::unwrap(result));
|
||||
}
|
||||
|
||||
fn child() {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ fn main() {
|
|||
task::task().future_result(|+r| { result = some(r); }).spawn(child);
|
||||
error!{"1"};
|
||||
yield();
|
||||
future::get(option::unwrap(result));
|
||||
future::get(&option::unwrap(result));
|
||||
}
|
||||
|
||||
fn child() { error!{"2"}; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue