Renaming tryRecover to recoverWith as in SIP14, adding parameter to foreach
This commit is contained in:
parent
d8fa7578e1
commit
8193e61aee
7 changed files with 14 additions and 14 deletions
|
|
@ -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>() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue