MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / fork

Method fork

packages/context/src/resolution-session.ts:88–93  ·  view source on GitHub ↗

* Fork the current session so that a new one with the same stack can be used * in parallel or future resolutions, such as multiple method arguments, * multiple properties, or a getter function * @param session - The current session

(session?: ResolutionSession)

Source from the content-addressed store, hash-verified

86 * @param session - The current session
87 */
88 static fork(session?: ResolutionSession): ResolutionSession | undefined {
89 if (session === undefined) return undefined;
90 const copy = new ResolutionSession();
91 copy.stack.push(...session.stack);
92 return copy;
93 }
94
95 /**
96 * Run the given action with the given binding and session

Callers 5

resolveInjectedArgumentsFunction · 0.80
getValueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected