Gentry v0.1.1 Gentry View Source
This is a convenience module for running synchronous tasks.
Each task is run in a separate spawned process.
Link to this section Summary
Functions
Run the task (function) in an isolated process
Link to this section Functions
Run the task (function) in an isolated process.
The return of the task is interrogated for success or failure.
* `:ok` The task was successful. Gentry will return `{:ok, :ok}`.
* `{:ok, result}` The task was successful. Gentry will return `{:ok, result}`.
* `error` The task was unsuccessful. Gentry will retry the task until it succeeds or the retry count is exhausted. In the latter case, `{:error, error}` is returned.
The task will be retried and respond if successful or if the number of retries has been exhausted.