8000 GitHub - alexkuang/again · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Aug 29, 2026. It is now read-only.
alexkuangPublic archive

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Again

hex package hex docs ci

A library for retrying work again... and again... and again...

Installation

def deps do
  [
    {:again, "~> 0.1.0"}
  ]
end

Usage

# Create a retry policy
alias Again.{Backoff, Clock, SystemClock, Termination}

policy =
  %Again.Policy{
    clock: SystemClock,
    backoff: Backoff.exponential_backoff(100),
    termination: Termination.limit_attempts(5)
  }

# Use it
Again.retry(policy, fn ->
  do_something_that_might_fail()
end)

TODO

A couple of things before this library is ready for primetime:

  • Better classification for error + success results
  • Observability into execution state / Logger integration
  • More docs + ergonomics

Documentation

Latest HexDocs

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0