# AnyLock.onRelease() method · @imqueue/pg-pubsub

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

Implements lock release handler upset

**Signature:**

```typescript
onRelease(handler: (channel: string) => void): void;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| handler | (channel: string) => void | called with the channel name once this process has released the lock for it, so a waiting process can take over |


**Returns:**

void

