extatus v0.2.5 Extatus.Generator View Source

This module implements a handler generator. It generates handlers on demand.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Generates a new handler with the process pid to monitor it using a generator name or PID

Starts a generator with some optional Supervisor options

Stops a generator

Stops a handler with the process pid of the monitored process with an optional reason

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function start_handler(generator, module, pid) View Source
start_handler(Supervisor.name(), module(), pid()) ::
  Supervisor.on_start_child()

Generates a new handler with the process pid to monitor it using a generator name or PID.

Starts a generator with some optional Supervisor options

Stops a generator.

Link to this function stop_handler(pid, reason \\ :normal) View Source
stop_handler(pid(), term()) :: :ok

Stops a handler with the process pid of the monitored process with an optional reason.