restore

suspend fun restore()

Loads every persisted MutationRecord from store and resubmits it for execution, using the MutationCodec registered under MutationRecord.codecId (via the constructor's codecs or a prior enqueue call) to reconstruct the endpoint + body.

Call once at startup, after registering every codec you enqueue with, to replay mutations that didn't finish before the process died. Records whose codec isn't registered are left untouched in store (so a later app version that registers the codec can still recover them).