tarearbol v0.4.1 Tarearbol.Errand

Handy set of cron-like functions to run tasks at the specified date/time.

Link to this section Summary

Functions

Runs the task either once at the specified %DateTime{} or repeatedly at the specified %Time{}

Runs the task either once at the specified %DateTime{} or repeatedly at the specified %Time{}

Spawns the task by calling run_in with a zero interval

Link to this section Functions

Link to this function run_at(job, at, opts \\ opts())
run_at(Function.t | {Module.t, Atom.t, List.t}, DateTime.t | Time.t | String.t, Keyword.t) :: Task.t

Runs the task either once at the specified %DateTime{} or repeatedly at the specified %Time{}.

Link to this function run_in(job, interval, opts \\ opts())

Runs the task either once at the specified %DateTime{} or repeatedly at the specified %Time{}.

Link to this function spawn(job, opts \\ opts())
spawn(Function.t | {Module.t, Atom.t, List.t}, Keyword.t) :: Task.t

Spawns the task by calling run_in with a zero interval