commit

abstract suspend fun commit()

Flushes all staged operations atomically to the underlying storage.

Throws

if commit has already been called on this editor.

if the underlying storage layer reports a write failure.

CancellationException

if the calling coroutine is cancelled before the write completes.