View Source OddJob.Scheduler (OddJob v0.5.1)

The OddJob.Scheduler is responsible for execution of scheduled jobs.

Each scheduler is a dynamically supervised process that is created to manage a single timer and a job or collection of jobs to send to a pool when the timer expires. After the jobs are delivered to the pool the scheduler shuts itself down. The scheduler process will also automatically shutdown if a timer is cancelled with OddJob.cancel_timer/1. If a timer is cancelled with Process.cancel_timer/1 then the scheduler will eventually timeout and shutdown one second after the timer would have expired.

Link to this section Summary

Link to this section Types

Specs

pool() :: atom()

Link to this section Functions

Link to this function

perform_many(timer, pool, collection, function)

View Source

Specs

perform_many(timer(), pool(), list() | map(), function()) :: reference()