Gives several claims back, in one statement where the store can. A failure
leaves them held until they expire. The fence lock of a handle claim()
fenced is deleted first; with opts.fences, every handle's is.
Parameters
handles: any
handles claim() or claimMany() returned
Optionalopts: any
{ fences }: delete every handle's fence lock first,
for handles read from the claims table
Returns Promise<number>
a promise of how many were released; it never rejects
Gives several claims back, in one statement where the store can. A failure leaves them held until they expire. The fence lock of a handle claim() fenced is deleted first; with
opts.fences, every handle's is.