()
| 40 | } |
| 41 | |
| 42 | const done = () => { |
| 43 | subscription.unsubscribe(); |
| 44 | // XXX: we could pass a few other things out here? |
| 45 | resolve(results); |
| 46 | }; |
| 47 | |
| 48 | if (cbIndex === cbs.length && errorIndex === errorCallbacks.length) { |
| 49 | if (wait === -1) { |
no outgoing calls