nextExpectedStreamRevision property

StreamRevision nextExpectedStreamRevision

The expected StreamRevision on next write operation. Returns StreamRevision.none until stream isCompleted.

Implementation

StreamRevision get nextExpectedStreamRevision => isCompleted
    ? _enumerator.progress.revision ?? StreamRevision.none
    : StreamRevision.none;