1.0.1 • Published 5 years ago

asyn-playground v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

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