# NoLock.onAcquire() method · @imqueue/pg-pubsub

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

Registers nothing: [NoLock.acquire()](https://imqueue.org/api/pg-pubsub/latest/pg-pubsub.nolock.acquire/) always succeeds immediately, so there is no late takeover for the handler to report.

**Signature:**

```typescript
onAcquire(handler: (channel: string) => void): void;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| handler | (channel: string) => void | ignored |


**Returns:**

void

