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

Class NotifyOrdered

src/DeferredGroup.java:91–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90 // Callback that preserves the original orders of the Deferreds.
91 final class NotifyOrdered<T> implements Callback<T, T> {
92 private final int index;
93 NotifyOrdered(int index) {
94 this.index = index;
95 }
96 public T call(final T arg) {
97 recordCompletion(arg, index);
98 return arg;
99 }
100 public String toString() {
101 return "notify #" + index + " DeferredGroup@"
102 + DeferredGroup.super.hashCode();
103 }
104 };
105
106 if (ordered) {
107 int i = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected