View Source GenRegistry.Spec (gen_registry v1.3.0)

GenRegistry.Spec provides helpers for pre-1.5 supervision.

Starting in Elixir 1.5 the preferred way to define child specs changed from using the now deprecated Supervisor.Spec module to using module-based child specs. This is a legacy support module for pre-1.5 spec generation

Link to this section Summary

Functions

Returns a pre-1.5 child spec for GenRegistry

Link to this section Functions

Link to this function

child_spec(worker_module, opts \\ [])

View Source
@spec child_spec(worker_module :: module(), opts :: Keyword.t()) ::
  Supervisor.Spec.spec()

Returns a pre-1.5 child spec for GenRegistry