Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncRpcResult should handle exception when registering callback. #4152

Closed
chickenlj opened this issue May 24, 2019 · 1 comment
Closed

AsyncRpcResult should handle exception when registering callback. #4152

chickenlj opened this issue May 24, 2019 · 1 comment
Milestone

Comments

@chickenlj
Copy link
Contributor

 public Result thenApplyWithContext(Function<Result, Result> fn) {
        this.thenApply(fn.compose(beforeContext).andThen(afterContext));
        // You may need to return a new Result instance representing the next async stage,
        // like thenApply will return a new CompletableFuture.
        return this;
    }

to

```java
 public Result thenApplyWithContext(BiFunction<Throwable, Result> fn) {
        this.handle(fn);
        // You may need to return a new Result instance representing the next async stage,
        // like thenApply will return a new CompletableFuture.
        return this;
    }
@chickenlj chickenlj added this to the 2.7.3 milestone May 24, 2019
@chickenlj
Copy link
Contributor Author

#4306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants