Renaming tryRecover to recoverWith as in SIP14, adding parameter to foreach

This commit is contained in:
Viktor Klang 2012-02-03 09:25:56 +01:00
parent d8fa7578e1
commit 8193e61aee
7 changed files with 14 additions and 14 deletions

View file

@ -361,7 +361,7 @@ public class FutureDocTestBase {
public Integer call() {
return 1 / 0;
}
}, system.dispatcher()).tryRecover(new Recover<Future<Integer>>() {
}, system.dispatcher()).recoverWith(new Recover<Future<Integer>>() {
public Future<Integer> recover(Throwable problem) throws Throwable {
if (problem instanceof ArithmeticException) {
return future(new Callable<Integer>() {