Package-level declarations

Types

Link copied to clipboard
class LocalStorageCheckpointer<State>(serializer: StateSerializer<State>, keyPrefix: String = "telar.checkpoint.", maxHistory: Int = 1) : Checkpointer<State>

A persistent Checkpointer for apps that run in a browser. It stores the checkpoints of each thread in the page's localStorage, so a paused run is still there after the page is reloaded or the browser is closed.

Link copied to clipboard
class LocalStorageException(val threadId: String, message: String, cause: Throwable? = null) : TelarException

The browser refused to read or write localStorage for the checkpoint of threadId: the storage of the page is full, or the page may not use it. The error of the browser is the cause.