Method ReadCurrentPeriodAsync
- Namespace
- MailFathom.Application.Emails.Embeddings.Limits
- Assembly
- MailFathom.Application.dll
ReadCurrentPeriodAsync(CancellationToken)
Reads where the current period stands, which is what a run consults before it starts spending.
public Task<EmbeddingSpendPeriod> ReadCurrentPeriodAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<EmbeddingSpendPeriod>
The period, its consumption, and what it still admits.
Remarks
This is the reading an activation weighs its estimate against, so it answers for a deployment with no ceiling too: the period is still named and still counted, and only the ceiling is absent.
Exceptions
- OperationCanceledException
Thrown when the caller cancels.