Optionalsignal: AbortSignalWhether this instance still holds the lock: false once its connection was lost, e.g. after a failover.
Takes the lock when it is free.
whether this instance holds the lock
Releases the lock and closes the connection. Does nothing when the lock is not held.
Waits until it takes the lock, trying every
retryEvery. Rejects withAbortErrorwhensignalaborts.