# @dx-libs/timeout

> Yet another setTimeout wrapper function, but async.

Latest version **0.1.1** (published 2019-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dx-libs/timeout
pnpm add @dx-libs/timeout
yarn add @dx-libs/timeout
bun add @dx-libs/timeout
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-02-26 |
| First published | 2019-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | dx Team |
| Maintainers | dx-team |
| Keywords | setTimeout, async, timeout |

## Links

- npm: https://www.npmjs.com/package/@dx-libs/timeout
- Repository: https://github.com/dx-libs/timeout
- Homepage: https://github.com/dx-libs/timeout#readme
- Issues: https://github.com/dx-libs/timeout/issues
- npm.io page: https://npm.io/package/@dx-libs/timeout

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^4.1.1
- [daax-console](https://npm.io/package/daax-console.md) ^0.4.1

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2019-02-26
- 0.1.0 — 2019-02-25

## README

# @dx-libs/timeout <sub><sup><sub><sup>v0.1.0</sup></sub></sup></sub>
~~~
Libreria de Timeout en @dx-libs/timeout
~~~

## Scripts
```powershell
npm run eslint
```
```powershell
npm run test-watch
```
```powershell
npm run test
```
```powershell
npm run sonar
```

## Instalación

### Como libreria
```powershell
npm install --save @dx-libs/timeout
```

## Modo de uso

```javascript
const timeout = require("@dx-libs/timeout");

timeout(() => { console.log('TIMEOUT !'); return 42; }, 1000)
    .then((value) => {
        console.log('CALLBACK!', value);
    });

const t = timeout(() => { console.log('NEVER !!'); }, 2000)
    .then((value) => {
        console.log('CALLBACK CANCELED!', value);
    });

t.cancel();
```
---

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