truncateStream abstract method

Future<void> truncateStream(
  1. StreamName name,
  2. ExpectedStreamVersion expected,
  3. StreamTruncatePosition truncate
)

Truncate all events on the stream upto given position Parameter name identifies stream to truncate events from. Parameter truncate is the position on stream to truncate events from. Use parameter expected to indicate which stream version that was last seen. Is used to perform consistency checks based on optimistic locking

Implementation

Future<void> truncateStream(
  StreamName name,
  ExpectedStreamVersion expected,
  StreamTruncatePosition truncate,
);