# light-async-polling

> Super light javascript function for making polling

Latest version **1.0.2** (published 2019-10-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install light-async-polling
pnpm add light-async-polling
yarn add light-async-polling
bun add light-async-polling
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-10-08 |
| First published | 2019-10-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | allemanfredi |
| Maintainers | allemanfredi |
| Keywords | light-async-polling, async-polling, node, polling, javascript |

## Links

- npm: https://www.npmjs.com/package/light-async-polling
- Repository: https://github.com/allemanfredi/light-async-polling
- Homepage: https://github.com/allemanfredi/light-async-polling#readme
- Issues: https://github.com/allemanfredi/light-async-polling/issues
- npm.io page: https://npm.io/package/light-async-polling

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-10-08
- 1.0.1 — 2019-10-08
- 1.0.0 — 2019-10-08

## README

# :arrows_clockwise: light-async-polling

Super light javascript function for making polling

## :fire: Usage:

``` js

  const polling = require('light-async-polling')

  await polling(async () => {
    const r = yourFunction()
    if (
      r
    ) {
      return true //stop polling
    } else {
      return false //continue polling
    }

  }, 2000) //milliseconds
```

## :video_game: Run examples:

``` 
  npm run examples
```

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