GlobalChild

TODO: Add description

Installation

def deps do
  [
    {:global_child, "~> 0.1.1"},
  ]
end

Documentation

The documentation is available on hexdocs.pm

Usage

To start a globally unique child, wrap its child spec with a GlobalChild child spec tuple:

children = [
  # ...
  {GlobalChild, child: {MyApp.Worker, name: {:global, :worker}}},
  # ...
]

Options

Configuration

The default values for :debug and :sleep options can be set at the configuration level. Those values are pulled at runtime.

config :global_child,
debug: true,
sleep: 1500