tarearbol v0.3.0 Tarearbol

Tarearbol module provides an interface to run tasks in easy way.

Examples

iex> result = Tarearbol.ensure(fn -> raise "¡?" end, attempts: 1, raise: false)
iex> {:error, %{job: _job, outcome: outcome}} = result
iex> {error, _stacktrace} = outcome
iex> error
%RuntimeError{message: "¡?"}

Link to this section Summary

Link to this section Functions

Link to this function ensure(job, opts \\ [])

Hello world.

Link to this function ensure!(job, opts \\ [])
Link to this function run_at(job, at, opts \\ [])
Link to this function run_in(job, interval, opts \\ [])
Link to this function spawn(job, opts \\ [])