MCPcopy Index your code
hub / github.com/OpenTSDB/async / group

Method group

src/Deferred.java:892–895  ·  view source on GitHub ↗

Groups multiple Deferreds together in a single one. Conceptually, this does the opposite of #chain, in the sense that it demultiplexes multiple Deferreds into a single one, so that you can easily take an action once all the Deferreds in the group have been called

(final Collection<Deferred<T>> deferreds)

Source from the content-addressed store, hash-verified

890 * {@link #groupInOrder(Collection)} instead.
891 */
892 public static <T>
893 Deferred<ArrayList<T>> group(final Collection<Deferred<T>> deferreds) {
894 return new DeferredGroup<T>(deferreds, false).getDeferred();
895 }
896
897 /**
898 * Groups multiple {@code Deferred}s together in a single one.

Callers

nothing calls this directly

Calls 1

getDeferredMethod · 0.80

Tested by

no test coverage detected