# IMQLock.locked() method · @imqueue/rpc

Source: https://imqueue.org/api/rpc/latest/rpc.imqlock.locked/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/rpc 3.5.3 — generated reference, not hand-written

Returns true if the given key is locked, false otherwise.

**Signature:**

```typescript
static locked(key: string): boolean;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| key | string | key to check the lock state for |


**Returns:**

boolean

