Beeline.stream_position

You're seeing just the function stream_position, go back to Beeline module for more information.
Link to this function

stream_position(subscription_event)

View Source

Determines the stream position of the subscription event

This function prefers link stream positions if available. This means that if the subscription from which the event is emitted is reading a projected stream such as a category stream, the returned stream position will reflect the position in the projected stream instead of the origin stream.

Examples

@impl GenStage
def handle_events([subscription_event], _from, state) do
  # consume the events

  MyApp.Repo.transaction(fn ->
    # save some state

    producer = Beeline.producer(subscription_event)
    stream_position = Beeline.stream_position(subscription_event)
    MyApp.StreamPosition.persist(producer, stream_position)
  end)
end