asyn-playground

1.0.1 • Public • Published

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 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

Package Sidebar

Install

npm i asyn-playground

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

23.3 kB

Total Files

18

Last publish

Collaborators

  • rogermori