Table of Contents

Method WaitForNextPassAsync

Namespace
MailFathom.Application.Emails.Embeddings.Backfill
Assembly
MailFathom.Application.dll

WaitForNextPassAsync(TimeSpan, CancellationToken)

Records that the next pass is due after the given pause, and waits for it.

public Task<bool> WaitForNextPassAsync(TimeSpan pause, CancellationToken cancellationToken)

Parameters

pause TimeSpan

How long the pass that just ended asked to wait.

cancellationToken CancellationToken

Ends the wait when the process is stopping.

Returns

Task<bool>

true when the wait ended because a pass was brought forward, false when the pause simply elapsed.

Remarks

Recording and waiting are one call so that a pause cannot be taken without the instant that ends it being readable, which is the whole of what an operator is missing while a deployment sits quiet.

Exceptions

OperationCanceledException

Thrown when the caller cancels.