Method DrainAsync
- Namespace
- MailFathom.Application.Signals
- Assembly
- MailFathom.Application.dll
DrainAsync()
Waits for whatever the last elapsed window started to have been delivered.
public Task DrainAsync()
Returns
- Task
A task that completes when no delivery this publisher started is still running.
Remarks
Reading the field under the lock rather than awaiting it directly, because a delivery that completes while it is being awaited replaces the field, and the caller wants the one that was current when it asked.