# asyn-playground

> Callback, Promise, Generator asynchronous examples

Latest version **1.0.1** (published 2018-11-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install asyn-playground
pnpm add asyn-playground
yarn add asyn-playground
bun add asyn-playground
```

## 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.1 |
| Published | 2018-11-13 |
| First published | 2018-11-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Roger Mori |
| Maintainers | rogermori |
| Keywords | Callback, Promise, Generator, asynchronous, examples |

## Links

- npm: https://www.npmjs.com/package/asyn-playground
- npm.io page: https://npm.io/package/asyn-playground

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@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

## Recent versions

- 1.0.1 (latest) — 2018-11-13

## README

This project contains a set of asynchronous code examples.

The examples compute the algebraic expression `(2 + 3) * 4 / 2 = 10` asynchronously by using callbacks, promises, generators, and thunks.

AsyncPlayground uses [Jest](https://facebook.github.io/jest/) as its test runner.

### Getting Started
Checkout this repo, install dependencies, then run the tests and examples:

```
> git clone https://github.com/rogermori/async-playground.git
> cd async-playground
> npm install
```
#### Run the tests
```
> npm run test 
```
#### Run the examples
```
> node [callback|promise]/example 
```

### Directory Structure
```
 callback 
 promise
 generator
 thunk
```
Each directory contains equivalent code: the math module, tests, and an example 

### Supported Language Features
This project uses JavaScript [ES6](https://github.com/lukehoban/es6features)

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