Distribunator.Distributed.pid_of

You're seeing just the function pid_of, go back to Distribunator.Distributed module for more information.

Specs

pid_of(any()) :: {:ok, pid()} | {:error, any()}

Get a single pid of a distributed name. If there are multiple pids registered with the same name, a random one is returned.

Parameters

  • name The distributed name

Returns

  • {:ok, pid} Success
  • {:error, reason} Failure and reason