MCPcopy
hub / github.com/loopbackio/loopback-next / values

Method values

packages/context/src/context-view.ts:233–243  ·  view source on GitHub ↗

* Get the list of resolved values. If they are not cached, it tries to find * and resolve them.

(session?: ResolutionOptionsOrSession)

Source from the content-addressed store, hash-verified

231 * and resolve them.
232 */
233 async values(session?: ResolutionOptionsOrSession): Promise<T[]> {
234 debug('Reading values');
235 // Wait for the next tick so that context event notification can be emitted
236 await new Promise<void>(resolve => {
237 process.nextTick(() => resolve());
238 });
239 if (this._cachedValues == null) {
240 return this.resolve(session);
241 }
242 return this.getCachedValues();
243 }
244
245 /**
246 * As a `Getter` function

Callers 3

asGetterMethod · 0.95
singleValueMethod · 0.95
getCachedValuesMethod · 0.45

Calls 3

resolveMethod · 0.95
getCachedValuesMethod · 0.95
resolveFunction · 0.70

Tested by

no test coverage detected