# callbag-wait

> Delays the emission of items from the source Callbag by a given timeout

Latest version **2.1.0** (published 2019-07-22) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2019-07-22 |
| First published | 2018-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Francisco Tavares de Lima Neto |
| Maintainers | francisco.tln |
| Keywords | callbag |

## Links

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

## Dependencies (1)

- [callbag](https://npm.io/package/callbag.md) ~1.2.0

## Recent versions

- 2.1.0 (latest) — 2019-07-22
- 2.0.0 — 2018-12-05
- 1.0.1 — 2018-06-18
- 1.0.0 — 2018-06-15

## README

# callbag-wait

Callbag operator that delays the emission of items from the source Callbag by a given timeout. Works for both listenable and pullable sources.

`npm install callbag-wait`

## Examples

### Iterable Source

```js
const forEach = require('callbag-for-each');
const fromIter = require('callbag-from-iter');
const pipe = require('callbag-pipe');
const wait = require('callbag-wait');

pipe(
  fromIter([0, 1, 2, 3]),
  wait(2000),
  forEach(v => console.log(v)) // => ----0----1----2----3|
);
```

### Listenable Source

```js
const forEach = require('callbag-for-each');
const interval = require('callbag-interval');
const pipe = require('callbag-pipe');
const take = require('callbag-take');
const wait = require('callbag-wait');

pipe(
  interval(1000),
  wait(2000),
  take(4),
  forEach(v => console.log(v)) // => ----0--1--2--3|
);
```

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