GenRetry.Task (gen_retry v1.4.0)

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

Link to this section Summary

Functions

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

Link to this section Functions

Link to this function

async(fun, opts \\ [])

Specs

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

Works like Task.async, 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.