resumeWith

suspend fun resumeWith(update: suspend (State) -> State = { it })

Continues the paused run, with the state that update returns, as CompiledGraph.resume does: for example with the decision of the person the run waited for. The checks after this one are about what the run does from there.

Throws

if the run did not pause, or its pause was not checked with expectInterruptBefore.