Skip to content

This project contains a set of asynchronous code examples. The examples compute the algebraic expression `(2 + 3) * 4 / 2 = 10` asynchronously by using different methods: callbacks, promises, generators, and thunks.

Notifications You must be signed in to change notification settings

rogermori/async-playground

Repository files navigation

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

About

This project contains a set of asynchronous code examples. The examples compute the algebraic expression `(2 + 3) * 4 / 2 = 10` asynchronously by using different methods: callbacks, promises, generators, and thunks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published