extatus v0.2.3 Extatus.Generator

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

Summary

Functions

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

Functions

start_handler(generator, module, pid)
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.

start_link(options \\ [])

Starts a generator with some optional Supervisor options

stop(generator)
stop(Supervisor.name) :: :ok

Stops a generator.

stop_handler(pid, reason \\ :normal)
stop_handler(pid, term) :: :ok

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