PayDayLoan.ProcessMonitor (pay_day_loan v0.7.0)

Monitor for process registry caches.

This is built to work with the supplied PayDayLoan.EtsBackend backend, for which it monitors pids and removes them from cache if the pid dies.

This can be disabled by setting cache_monitor: false in the PDL setup.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec init([PayDayLoan.t()]) :: {:ok, PayDayLoan.ProcessMonitor.State.t()}

Callback implementation for GenServer.init/1.