Page Contents
Home > @loopback/pooling > getPooledValue
getPooledValue() function
Acquire a resource from the pooling service or pool
Signature:
export declare function getPooledValue<T>(poolingService: PoolingService<T> | Pool<T>, requestCtx?: Context): Promise<PooledValue<T>>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| poolingService | PoolingService<T> | Pool<T> | Pooling service or pool |
| requestCtx | Context | Request context |
Returns:
Promise<PooledValue<T>>