MCPcopy
hub / github.com/apollographql/apollo-client / done

Function done

packages/apollo-client/src/util/observableToPromise.ts:42–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 15

tryToResolveFunction · 0.70
fetchPolicies.tsFile · 0.50
ObservableQuery.tsFile · 0.50
nextFunction · 0.50
errorFunction · 0.50
scheduler.tsFile · 0.50
errorFunction · 0.50
errorFunction · 0.50
nextFunction · 0.50
index.tsFile · 0.50
refetchFunction · 0.50
recycler.tsFile · 0.50

Calls

no outgoing calls

Tested by 15

nextFunction · 0.40
errorFunction · 0.40
errorFunction · 0.40
errorFunction · 0.40
nextFunction · 0.40
refetchFunction · 0.40
evictionLinkFunction · 0.40
round2Function · 0.40
handleUncaughtFunction · 0.40
nextFunction · 0.40
errorFunction · 0.40
nextFunction · 0.40