decode

fun decode(threadId: String, data: String): Checkpoint<State>

Reads the latest checkpoint of what encode or append returned.

Parameters

threadId

the thread the data belongs to; only used in the error.

Throws

if data is not a checkpoint, was written in a newer format, or holds a state that serializer cannot read.