Page Contents
Home > @loopback/context > ResolutionSession > fork
ResolutionSession.fork() method
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
Signature:
static fork(session?: ResolutionSession): ResolutionSession | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
session | ResolutionSession | (Optional) The current session |
Returns:
ResolutionSession | undefined