De-mode core::future.
This commit is contained in:
parent
bc6eaf2acb
commit
36883186ab
5 changed files with 25 additions and 21 deletions
|
|
@ -429,7 +429,7 @@ mod tests {
|
|||
}
|
||||
}
|
||||
// Wait for children to pass their asserts
|
||||
for vec::each(children) |r| { future::get(r); }
|
||||
for vec::each(children) |r| { future::get(&r); }
|
||||
// Wait for writer to finish
|
||||
p.recv();
|
||||
do arc.read |num| { assert *num == 10; }
|
||||
|
|
|
|||
|
|
@ -391,7 +391,7 @@ fn run_test(+test: test_desc, monitor_ch: comm::chan<monitor_msg>) {
|
|||
task::task().unlinked().future_result(|+r| {
|
||||
result_future = some(r);
|
||||
}).spawn(testfn);
|
||||
let task_result = future::get(option::unwrap(result_future));
|
||||
let task_result = future::get(&option::unwrap(result_future));
|
||||
let test_result = calc_result(test, task_result == task::success);
|
||||
comm::send(monitor_ch, (copy test, test_result));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue