De-mode core::future.

This commit is contained in:
Graydon Hoare 2012-08-13 19:06:57 -07:00
parent bc6eaf2acb
commit 36883186ab
5 changed files with 25 additions and 21 deletions

View file

@ -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; }

View file

@ -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));
};