# callbag-retry

> 👜 Callbag operator which resubscribes to the source given amount of times.

Latest version **1.0.0** (published 2018-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install callbag-retry
pnpm add callbag-retry
yarn add callbag-retry
bun add callbag-retry
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-11-12 |
| First published | 2018-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Mateusz Burzyński |
| Maintainers | andarist |
| Keywords | callbag, callbags |

## Links

- npm: https://www.npmjs.com/package/callbag-retry
- Repository: https://github.com/Andarist/callbag-retry
- Homepage: https://github.com/Andarist/callbag-retry#readme
- Issues: https://github.com/Andarist/callbag-retry/issues
- npm.io page: https://npm.io/package/callbag-retry

## Recent versions

- 1.0.0 (latest) — 2018-11-12

## README

# callbag-retry

Callbag operator which resubscribes to the source given amount of times.

## Example

```js
import concat from 'callbag-concat'
import fromIter from 'callbag-from-iter'
import pipe from 'callbag-pipe'
import retry from 'callbag-retry'
import subscribe from 'callbag-subscribe'
import throwError from 'callbag-throw-error'

pipe(
  concat(fromIter([1, 2, 3]), throwError(new Error('Test error.'))),
  retry(3),
  subscribe({
    next: v => {
      // will log 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3
      console.log(v)
    },
    error(err) {
      // errors with 4th `Test error.` error
    },
  }),
)
```

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