PaxosKV.PauseUntil (paxos_kv v0.6.0)

Copy Markdown

A special GenServer that executes a function during initialization.

This module is used to pause the supervisor's startup sequence until a given function completes. After executing the function, the GenServer returns :ignore, which causes it to not be added to the supervision tree.

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(fun)

Callback implementation for GenServer.init/1.

start_link(fun)