Method RunUntilIdleAsync
RunUntilIdleAsync(bool, CancellationToken)
Runs every claimable job to completion, including work that running them enqueues.
public ValueTask<int> RunUntilIdleAsync(bool throwOnFailure = true, CancellationToken ct = default)
Parameters
throwOnFailureboolWhen true (the default) a job that exhausts its retries rethrows here, so a broken job fails the test loudly instead of leaving an unexplained assertion failure later. Pass false when the failure is the thing under test.
ctCancellationToken
Returns
Exceptions
- MillraceJobFailedException
A job exhausted its retries and
throwOnFailureis true.