conflow
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

conflow

Advanced node.js control flow patterns and more.

Usage example

import { concurrent, delay } from 'conflow';
 
const q = concurrent(4);
 
function test() {
  q.go(delay(0, 5000));
  q.go(delay(1, 4000));
  q.go(delay(2, 3000));
  q.go(delay(3, 2000));
  q.go(delay(4, 1000));
 
  q.one((n) => console.log('one', n));
}
 
test();

Package Sidebar

Install

npm i conflow

Weekly Downloads

2

Version

1.1.4

License

MIT

Unpacked Size

29.3 kB

Total Files

26

Last publish

Collaborators

  • wateriy