to

infix suspend fun AuditRange.to(toSeq: Long): AuditResult

Second half of the saga audit "id" from a to b ranged form.

Calls journal.verify(RunId(id), fromSeq, toSeq) and maps the result to AuditResult. This function is suspend infix — it must be called from a coroutine scope.

Usage

val r = saga audit "order-42" from 0L to 5000L

Return

AuditResult mapped from ca.acendas.kstate.saga.journal.VerifyResult.

Parameters

toSeq

Inclusive end of the sequence range.

Throws

if the executor was built without a journal.