Method TryEnqueue
- Namespace
- MailFathom.Application.Emails.Embeddings.Generation
- Assembly
- MailFathom.Application.dll
TryEnqueue(StoredEmailId)
Offers one durable message to the worker, refusing the offer when the backlog is full.
bool TryEnqueue(StoredEmailId storedEmailId)
Parameters
storedEmailIdStoredEmailIdThe message whose passages are ready to be embedded.
Returns
Remarks
Never blocks and never waits. A caller that has just committed a message is holding no transaction open, but it is holding an IMAP session, and a backlog that made it wait would turn a slow provider into a slow mailbox.