read

abstract suspend fun read(): String

Reads the current content of the document.

Returns an empty string if no content has been written yet.

Return

The stored document content, or an empty string if absent.

Throws

CancellationException

if the calling coroutine is cancelled before the read completes. Structured concurrency is respected — the exception propagates normally.