restore

fun restore(): Job

Reads where the run of the thread stopped, without running anything, as CompiledGraph.lastResult does. Call it when a screen opens, for example after the operating system ended the app: snapshot is GraphSnapshot.Restoring until the checkpoint is read, and then GraphSnapshot.Idle when the thread has none, GraphSnapshot.Completed, or GraphSnapshot.Interrupted when resume can continue it. A run that the app lost in the middle of a step counts as interrupted before that step.

Throws

if the config of this session has no checkpointer.