# PgIpLock.dispose() method · @imqueue/pg-pubsub

Source: https://imqueue.org/api/pg-pubsub/latest/pg-pubsub.pgiplock.dispose/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-pubsub 3.0.5 — generated reference, not hand-written

Frees all local resources held by this lock (acquire timer, client notification listener, global registry entry) without touching the database. Used directly when the underlying connection is already dead (e.g. on reconnect) and as a part of destroy().

**Signature:**

```typescript
dispose(): void;
```
**Returns:**

void

