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

Method done

src/DeferredGroup.java:163–174  ·  view source on GitHub ↗

Called once we have obtained all the results of this group.

()

Source from the content-addressed store, hash-verified

161
162 /** Called once we have obtained all the results of this group. */
163 private void done() {
164 // From this point on, we no longer need to synchronize in order to
165 // access `results' since we know we're done, so no other thread is
166 // going to call recordCompletion() again.
167 for (final Object r : results) {
168 if (r instanceof Exception) {
169 parent.callback(new DeferredGroupException(results, (Exception) r));
170 return;
171 }
172 }
173 parent.callback(results);
174 }
175
176 public String toString() {
177 return "DeferredGroup"

Callers 1

recordCompletionMethod · 0.95

Calls 1

callbackMethod · 0.80

Tested by

no test coverage detected