Table of Contents

Method ReadSchedulesAsync

Namespace
MailFathom.Application.EmailContent.Storage.Reclamation
Assembly
MailFathom.Application.dll

ReadSchedulesAsync(CancellationToken)

Reads the schedules this source declares as they stand now.

public Task<IReadOnlyList<ScheduledJob>> ReadSchedulesAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancels the read.

Returns

Task<IReadOnlyList<ScheduledJob>>

The schedules, empty when this source declares none.

Remarks

The declaration is composed per read because the sweep it dispatches is named here, which is the only place that can name it before an attempt exists. The name reaches the chain in the document the enqueue committed, so every execution of the first leased segment reads one identity and hands the rest of the sweep on under one key.

Which of the names a pass proposes becomes the occasion's is decided by the queue rather than here. Every pass on every replica enqueues one occasion under one key, so the first to arrive writes the sweep and the rest are answered with the job already there — and two occasions are two keys, two documents, and two chains that are never deduped against each other.