EventStore.PubSub.subscribe

You're seeing just the function subscribe, go back to EventStore.PubSub module for more information.
Link to this function

subscribe(event_store, topic, opts \\ [])

View Source

Specs

subscribe(EventStore.t(), binary(),
  selector: (EventStore.RecordedEvent.t() -> any()),
  mapper: (EventStore.RecordedEvent.t() -> any())
) :: :ok | {:error, term()}

Subscribes the caller to the given topic.