Porterage v0.1.0 Porterage.Scheduler.MFArgs View Source

Scheduler based on usage of Kernel.apply/3 calls.

The configured function to call is required to send a message to self() in order to schedule the next tick:

GenServer.cast(self(), :tick)
Kernel.send(self(), :tick)
Process.send_after(self(), :tick, send_after)

Configuration

{
  scheduler: Porterage.Scheduler.MFArgs,
  scheduler_opts: %{mfargs: {_, _, _}}
}

See options/0 for a specification of available options.

Link to this section Summary

Link to this section Types

Link to this type

options()

View Source
options() :: %{mfargs: {module(), atom(), [any()]}}