GenRetry.Task.Supervisor (gen_retry v1.4.0)
Provides async/3, which operates like Task.Supervisor.async/2
with retry capability.
Link to this section 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.
Link to this section 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.