1.1.4 • Published 4 years ago

conflow v1.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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();