Package-level declarations

Types

Link copied to clipboard

Converts the checkpoints of a thread to and from a string, so a Checkpointer for any storage only has to read and write strings:

Link copied to clipboard
class KotlinxStateSerializer<State>(serializer: KSerializer<State>, json: Json = Json) : StateSerializer<State>

A StateSerializer backed by kotlinx.serialization, for states annotated with @Serializable.

Functions

Link copied to clipboard
inline fun <State> CheckpointCodec(json: Json = Json): CheckpointCodec<State>

Creates a CheckpointCodec for the reified @Serializable State type.

Link copied to clipboard
inline fun <State> KotlinxStateSerializer(json: Json = Json): KotlinxStateSerializer<State>

Creates a KotlinxStateSerializer for the reified @Serializable State type.