Skip to content

weekendesk/asyncflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asyncflow • CircleCI

This library allow you to use flows, or sometimes named waterfalls, on an easy way.

const asyncflow = require('./index');

const square = (value) => value * value;

const asyncSquare = (value) => new Promise((resolve) => {
  setTimeout(() => { resolve(value * value); });
});

const result = asyncflow([
  square,
  asyncSquare,
])(2);

// OR

const result = asyncflow(
  square,
  asyncSquare,
)(2);

License

Copyright (c) Weekendesk SAS.

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published