Returns an Awaitable that completes with the result of the first source that succeeds. Individual failures are silently absorbed; only when all sources have failed does the returned awaitable reject with an IllegalStateException whose {@linkplain Throwable#getSuppressed() s
(Object... sources)
| 475 | * @see AsyncSupport#firstAsync(Object...) AsyncSupport.firstAsync — implementation |
| 476 | */ |
| 477 | @SuppressWarnings("unchecked") |
| 478 | static <T> Awaitable<T> first(Object... sources) { |
| 479 | return AsyncSupport.firstAsync(sources); |
| 480 | } |
no outgoing calls
no test coverage detected