@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
28 lines (18 loc) • 914 B
Markdown
---
lang: en
title: 'API docs: pooling.poolable.release'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/pooling
permalink: /doc/en/lb4/apidocs.pooling.poolable.release.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/pooling](./pooling.md) > [Poolable](./pooling.poolable.md) > [release](./pooling.poolable.release.md)
## Poolable.release() method
To be called right before the resource is released to the pool. If it fails, the resource will be destroyed from the pool. This method should be used to clean up the resource to be returned.
<b>Signature:</b>
```typescript
release?(): ValueOrPromise<void>;
```
<b>Returns:</b>
[ValueOrPromise](./context.valueorpromise.md)<!-- --><void>