| 78 | |
| 79 | // Callback used to collect results in the order in which they appear. |
| 80 | final class Notify<T> implements Callback<T, T> { |
| 81 | public T call(final T arg) { |
| 82 | recordCompletion(arg); |
| 83 | return arg; |
| 84 | } |
| 85 | public String toString() { |
| 86 | return "notify DeferredGroup@" + DeferredGroup.super.hashCode(); |
| 87 | } |
| 88 | }; |
| 89 | |
| 90 | // Callback that preserves the original orders of the Deferreds. |
| 91 | final class NotifyOrdered<T> implements Callback<T, T> { |
nothing calls this directly
no outgoing calls
no test coverage detected