Table of Contents

Method CountEmailsAwaitingExtractionAsync

Namespace
MailFathom.Application.Emails.Extraction
Assembly
MailFathom.Application.dll

CountEmailsAwaitingExtractionAsync(CancellationToken)

Counts the stored emails this walk still owes work on, under the configuration it is walking for.

Task<int> CountEmailsAwaitingExtractionAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<int>

How many stored emails the walk would still reach, which is zero once it has finished.

Remarks

Answered by the walk's own store and through the same predicate the batch query is narrowed by, so the backlog an operator watches and the work a run would actually do are one number rather than two that drift the first time either learns something about tombstones, about missing content, or about a rebuild.