MemoryCheckpointer
A Checkpointer that keeps checkpoints in memory. Intended for tests and short-lived processes. Safe to share between coroutines and threads.
Parameters
maxHistory
how many checkpoints a thread keeps, counted from the latest. The default keeps all of them; 1 keeps only the latest.
Throws
if maxHistory is not positive.