mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 08:58:26 +00:00
refactor: Eliminate Optional from fields and parameters for async method invocation (#2830)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user