Revenant.Supervisor (Revenant v0.1.0)

View Source

The supervision tree for Revenant servers.

Add it to your application after your repo:

children = [MyApp.Repo, Revenant.Supervisor]

It owns the registry that maps {module, id} to live pids and the dynamic supervisor under which servers start lazily on first message. Servers are :temporary: a crashed server is not restarted eagerly but revived from its committed state by the next call that addresses it.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])