metarhia / metasync

Asynchronous Programming Library for JavaScript & Node.js
https://metarhia.com
MIT License
206 stars 35 forks source link

Rename metasync.chain().do() to metasync.do().do() #278

Closed tshemsedinov closed 6 years ago

tshemsedinov commented 6 years ago

New syntax:

const c1 = metasync
  .do(readConfig, 'myConfig')
  .do(selectFromDb, 'select * from cities')
  .do(getHttpPage, 'http://kpi.ua')
  .do(readFile, 'README.md');

c1((err, data) => {});

See previous: https://github.com/metarhia/metasync/issues/274