MeshxRpc.Client.Pool.child_spec

You're seeing just the function child_spec, go back to MeshxRpc.Client.Pool module for more information.
Link to this function

child_spec(id, opts \\ [])

View Source

Specs

child_spec(id :: atom() | String.t(), opts :: Keyword.t()) ::
  :supervisor.child_spec()

Returns a specification to start a RPC client workers pool under a supervisor.

id is a pool id which might be a name of a module implementing user RPC functions.

opts are options described in "Configuration" section above and in MeshxRpc "Common configuration" section.

Example:

iex(1)> MeshxRpc.Client.Pool.child_spec(Example1.Client, address: {:uds, "/tmp/meshx.sock"})
{Example1.Client,
 {:poolboy, :start_link,
  [
    [
      name: {:local, Example1.Client},
      worker_module: MeshxRpc.Client.Worker
    ],
    [
      ...
    ]
  ]}, :permanent, 5000, :worker, [:poolboy]}