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

This commit is contained in:
guqing
2024-03-23 18:03:13 +08:00
committed by GitHub
parent 846dea2dca
commit 79dd5a7abc
6 changed files with 53 additions and 47 deletions
+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);
}
```