GenRetry.Task.Supervisor

Provides async/3, which operates like Task.Supervisor.async/2 with retry capability.

Summary

Functions

Works like Task.Supervisor.async/2, but with retry. Returns a regular %Task{} usable with the rest of the functions in Task

Works like Task.Supervisor.async_nolink/2, but with retry. Returns a regular %Task{} usable with the rest of the functions in Task

Functions

async(pid, fun, opts \\ [])

Specs

async(pid, GenRetry.retryable_fun, GenRetry.options) :: %Task{owner: term, pid: term, ref: term}

Works like Task.Supervisor.async/2, but with retry. Returns a regular %Task{} usable with the rest of the functions in Task.

opts are GenRetry options. The :respond_to option is tolerated, but ignored.

async_nolink(pid, fun, opts \\ [])

Specs

async_nolink(pid, GenRetry.retryable_fun, GenRetry.options) :: %Task{owner: term, pid: term, ref: term}

Works like Task.Supervisor.async_nolink/2, but with retry. Returns a regular %Task{} usable with the rest of the functions in Task.

opts are GenRetry options. The :respond_to option is tolerated, but ignored.