---
lang: en
title: 'API docs: pooling.getpooledvalue'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/extensions/pooling
permalink: /doc/en/lb4/apidocs.pooling.getpooledvalue.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/pooling](./pooling.md) &gt; [getPooledValue](./pooling.getpooledvalue.md)

## getPooledValue() function

Acquire a resource from the pooling service or pool

<b>Signature:</b>

```typescript
export declare function getPooledValue<T>(poolingService: PoolingService<T> | Pool<T>): Promise<PooledValue<T>>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  poolingService | [PoolingService](./pooling.poolingservice.md)<!-- -->&lt;T&gt; \| Pool&lt;T&gt; | Pooling service or pool |

<b>Returns:</b>

Promise&lt;[PooledValue](./pooling.pooledvalue.md)<!-- -->&lt;T&gt;&gt;


