Store.releaseClaim
Release an owned replay claim
Releases a replay claim only when its owner matches.
Usage
import { } from 'mppx'
const = .()
const = 'request:abc123'
const = 'attempt-1'
const = await .(, , .() + 60_000, )
if () await .(, , )An owner mismatch leaves the claim intact. A custom store with a native tryClaim must also implement atomic releaseClaim(key, owner) before it handles owned claims.
Return type
type ReturnType = Promise<void>Parameters
key
- Type:
string
Replay key to release.
owner
- Type:
string
Owner recorded when the claim was created.
store
- Type:
Store.AtomicStore
Store containing the claim.