Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ync

hakt0r440.0.9

simply serialize async calls

ync, async, call, synchronization

readme

ync - simply serialize async calls

Installation

$ sudo npm ync (TODO: publish)
$ sudo npm install -g git://github.com/hakt0r/ync.git

Node.JS Usage:

Sync = require('ync')
s = new Sync({
  "step1" : function(){
    this.continue(123);
  },
  "step2" : function(value){
    this.continue(value+1);
  },
})

s.insertAfter("step1","step_in",function(value){
  this.continue(value+1);
})

s.on 'done', function(value){
  console.log(value)
}

Copyrights

Licensed under GNU GPLv3

ync is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

ync is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

http://www.gnu.org/licenses/gpl.html