Page Contents
Home > @loopback/pooling > Poolable > acquire
Poolable.acquire() method
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.
Signature:
acquire?(requestCtx: Context): ValueOrPromise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
requestCtx | Context |
Returns:
ValueOrPromise<void>