Scenic.PubSub.register

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

register(source_id, opts \\ [])

View Source

Specs

register(source_id :: atom(), opts :: Keyword.t()) ::
  {:ok, atom()} | {:error, :already_registered}

Register the calling process as a data source for the named id.

Parameters

  • source_id the data source being registered.
  • opts optional information about the data source.

Supported options:

  • :version - Data format version

  • :description - Your appropriate description

Return Value

On success, returns {:ok, source_id}

If source_id is already registered to another process, it returns

{:error, :already_registered}