Method Claim(string, TimeSpan?, CancellationToken)

Assembly: redb.Route.Core.dll

Claims the key as does, and when it is held already tells why: the message is still being
processed under an earlier claim () or was processed and confirmed
(). An unconfirmed claim older than abandonedAfter is
taken to be abandoned (its holder stopped between and ) and is taken over
(): the repository replaces exactly that claim, so when two callers try it at
once one wins and the other gets .

The default claims with and takes any held key for confirmed, which is what a caller of
assumes. A repository that keeps the confirmed state and the time of the claim overrides it, so
that a receiver can tell a resend of a message still in flight from a duplicate, and so that a claim left behind
by a stopped node does not block its message for good.

public Task<IdempotentClaim> Claim(string key, TimeSpan? abandonedAfter, CancellationToken ct = default)