Sto provando a concatenare una serie di metodi asincroni. Ho sentito parlare di promesse e futures, ma quello che sto cercando è:
obj.setup()
    .do_something()
    .do_another_thing()
    .end()
e non:
obj.setup()
    .then(...)
    .then(....)
 Ho trovato un tutorial che spiega come farlo, ma sfortunatamente il centesimo non è stato cancellato:  link  Quindi sto cercando un modulo. Questo modulo,  link , sembra avere   chainify    nella sua API ma non c'è documentazione su come usarlo. In effetti non riesco a trovare alcuna documentazione su come utilizzare i moduli per ottenere ciò che sto cercando, ma molto sull'usare promesse per ottenere   then().then().then()    che non è quello che mi serve. 
Attualmente il mio modulo assomiglia a:
var obj = function(){
   this.async_method = function(){}
   this.async_method_thingy = function(){}
   this.async_method_foo = function(){}
}
var o = new obj()
var _ = {
   "setup" : function(){
      ...
      return this
   },
   "do_something" : function(){
      o.async_method()
      return this
   },
   "do_another_thing" : function(){
      o.async_method_thingy()
      return this
   },
   "end" : function(){
      o.async_method_foo()
      return this
   }
}
module.exports = _
qualsiasi aiuto è apprezzato;)