Table of Contents

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

user UserId

The person whose task is erased, which is what scopes the write.

task PersonalTaskId

The task to erase.

cancellationToken CancellationToken

Cancels the erasure.

Returns

Task<bool>

true when a task was erased, and false when this user held none.

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.