mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 10:13:46 +00:00
refactor: Eliminate Optional from fields and parameters for async method invocation (#2830)
This commit is contained in:
1 parent
846dea2dca
commit
79dd5a7abc
6 files changed
+53
-47
No files matched your search
@@ -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