Method EraseAsync
- Namespace
- MailFathom.Application.Tasks
- Assembly
- MailFathom.Application.dll
EraseAsync(UserId, PersonalTaskId, CancellationToken)
Erases one of a person's tasks.
Task<bool> EraseAsync(UserId user, PersonalTaskId task, CancellationToken cancellationToken)
Parameters
userUserIdThe person whose task is erased, which is what scopes the write.
taskPersonalTaskIdThe task to erase.
cancellationTokenCancellationTokenCancels the erasure.
Returns
Remarks
The row goes rather than being marked gone: a task nobody owes any more is not a record anything is owed about, and keeping one would leave a list whose every reader had to remember to exclude it. Erasing something already erased is the act the caller wanted rather than an error, so the answer says what happened and never what was asked for.