refactor: Eliminate Optional from fields and parameters for async method invocation (#2830)

This commit is contained in:
guqing authored and GitHub committed 2024-03-23 12:03:13 +02:00
1 parent 846dea2dca
commit 79dd5a7abc
6 files changed
+53 -47

No files matched your search

+2 -1
View File
@@ -57,7 +57,8 @@ public interface AsyncResult<T> {
```java
public interface AsyncCallback<T> {
void onComplete(T value, Optional<Exception> ex);
void onComplete(T value);
void onError(Exception ex);
}
```