Page Contents
Home > @loopback/pooling > PoolingService > destroy
PoolingService.destroy() method
Destroy a resource from the pool
Signature:
destroy(resource: T): Promise<void>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| resource | T | Resource instance to be destroyed |
Returns:
Promise<void>