Method ReleaseAsync
- Namespace
- MailFathom.Application.EmailContent.Storage
- Assembly
- MailFathom.Application.dll
ReleaseAsync(Guid, CancellationToken)
Gives one claim's room back, whether or not the payload it covered was ever stored.
Task ReleaseAsync(Guid claimId, CancellationToken cancellationToken)
Parameters
claimIdGuidThe claim that was taken.
cancellationTokenCancellationTokenCancels the release.
Returns
- Task
A task that completes when the claim no longer binds.
Remarks
Releasing a claim that has already expired and been swept is not an error. The claim binds nothing either way, and a holder that was slow enough to be swept must not fail the run it was storing for.