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

Method acquire

extensions/pooling/src/pooling.ts:67–67  ·  view source on GitHub ↗

* To be called right after the resource is acquired from the pool. If it * fails, the resource will be destroyed from the pool. The method should be * used to set up the acquired resource.

(requestCtx: Context)

Source from the content-addressed store, hash-verified

65 * used to set up the acquired resource.
66 */
67 acquire?(requestCtx: Context): ValueOrPromise<void>;
68 /**
69 * To be called right before the resource is released to the pool. If it
70 * fails, the resource will be destroyed from the pool. This method should be

Callers 3

getPooledValueFunction · 0.65
acquireMethod · 0.65

Implementers 3

ExpensiveResourceextensions/pooling/src/__tests__/accep
ExpensiveResourceWithHooksextensions/pooling/src/__tests__/accep
PoolingServiceextensions/pooling/src/pooling.ts

Calls

no outgoing calls

Tested by

no test coverage detected