Returns an already-completed Awaitable with the given value. Useful for returning a pre-computed result from an API that requires an Awaitable return type. @param value the result value (may be null) @param the result type @return a completed awaitable
(T value)
| 342 | * @return a completed awaitable |
| 343 | */ |
| 344 | static <T> Awaitable<T> of(T value) { |
| 345 | return new GroovyPromise<>(CompletableFuture.completedFuture(value)); |
| 346 | } |
| 347 |
no outgoing calls