dawdle_db v0.6.0 DawdleDB.Watcher.SwarmContainer

A container process for running a supervisor under Swarm. The MFA passed in must return {:ok, pid} where pid is Supervisor style process (in particular it must be correctly handled as a supervisor process by Supervisor.stop/3).

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

start_link(module, fun, args)

start_link(module(), atom(), list()) :: {:ok, pid()}