# @aster-js/resilient

> Aster core library part of Aster js library

Latest version **1.0.0-beta.1** (published 2021-01-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install @aster-js/resilient
pnpm add @aster-js/resilient
yarn add @aster-js/resilient
bun add @aster-js/resilient
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-beta.1 |
| Published | 2021-01-18 |
| First published | 2021-01-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 46.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | sebdoucet |
| Maintainers | aster-js |

## Links

- npm: https://www.npmjs.com/package/@aster-js/resilient
- Repository: https://github.com/asterlibraryjs/aster-js-resilient
- Homepage: https://github.com/asterlibraryjs/aster-js-resilient#readme
- Issues: https://github.com/asterlibraryjs/aster-js-resilient/issues
- npm.io page: https://npm.io/package/@aster-js/resilient

## Dependencies (4)

- [tslib](https://npm.io/package/tslib.md) ^1.11.1
- [@aster-js/core](https://npm.io/package/@aster-js/core.md) ^1.0.0-beta.1
- [@aster-js/http](https://npm.io/package/@aster-js/http.md) ^1.0.0-beta.2
- [@aster-js/async](https://npm.io/package/@aster-js/async.md) ^1.0.0-beta.1

## Recent versions

- 1.0.0-beta.1 (latest) — 2021-01-18

## README

# @aster-js/resilient

This library provides objects to manage resiliency.

### Quick sample

```typescript
const loadDataCallback = ResilientCallback.create(
    async () => {
        // Unsafe code that load some data
    },
    { waitAndRetry: [100, 500, 1000] }
);

async function load(): Promise<any> {
    const data = await loadDataCallback();
    console.warn(result);
}
```

- [Resilient Callback](./doc/resilient-callback.md)
- [IPolicy](./doc/ipolicy.md)

---
_Source: https://npm.io/package/@aster-js/resilient · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
