MCPcopy Index your code
hub / github.com/apache/groovy / first

Method first

src/main/java/groovy/concurrent/Awaitable.java:477–477  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 }

Callers 5

mainMethod · 0.65
rethrowFirstMethod · 0.65
chooseBestMethodMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected