append

abstract suspend fun append(event: Event): Either<StoreError, Event>

Creates a new copy of the event with a new id and stores it in this EventStore.

Return

A copy of event with the new id if it was successfully appended

A StoreError if the event could not be appended

Parameters

event

The Event to store.