Scenic.PubSub.register
You're seeing just the function
register
, go back to Scenic.PubSub module for more information.
Specs
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}