Resolve the future with data. Thread-safe — only the first call takes effect.
(Object data)
| 23 | * Resolve the future with data. Thread-safe — only the first call takes effect. |
| 24 | */ |
| 25 | public void resolve(Object data) { |
| 26 | this.completableFuture.complete(data); |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Resolve the future with null. Used when no specific data is needed. |
no outgoing calls