0.3.2 • Published 3 years ago
@aradzie/retry v0.3.2
Retry (API Doc)
A library for retrying failed I/O operations.
Example:
import { retry, fixedDelay } from "@aradzie/retry";
class MyService {
  @retry({
    // Fail after three attempts.
    retryLimit: 3,
    // Fail if attempts take more than three seconds.
    timeLimit: 3000,
    // Delay for 100 milliseconds between attempts.
    delayer: fixedDelay(100),
  })
  async makeNetworkRequest(): Promise<void> {
    // The @retry(...) annotation will call this method
    // as long as it throws exceptions, then returns
    // the last successful result.
  }
}0.3.2
3 years ago
0.3.0
4 years ago
0.3.1
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago
0.0.3-alpha.0
5 years ago
0.0.2-alpha.7
5 years ago
0.0.2-alpha.6
5 years ago
0.0.2-alpha.5
5 years ago
0.0.2-alpha.4
6 years ago
0.0.2-alpha.3
6 years ago
0.0.2-alpha.2
6 years ago
0.0.2-alpha.1
6 years ago
0.0.2-alpha.0
6 years ago