Hi,
This is interesting. You probably had at look at taskjs.org. Generators
are kinds of structured fibers that, yes, can be "abused" to provide some
form of threading. How "unobstrusive" this can be remains to be fully
explored, as you do, in good company (see also streamline implementation
Le jeudi 23 mai 2013 19:32:25 UTC+2, Domenic Denicola a écrit :
> That's overstating it a bit. It's very easy to convert to promise-based
> code, e.g.:
>
> var fs = require('fs');
> var Q = require('q');
>
> var readFile = Q.denodeify(fs.readFile);
> var writeFile = Q.denodeify(fs.writeFile);
>
@mgutz, https://github.com/gameclosure/ff
ff and paroles do have similar purposes, thanks for pointing that. I missed
ff but I too had a look at the reimagined "step" by creationix/Time Caswell.
I believe the main difference between ff and paroles is about the way ff
handle step errors because
);"
Promise/A+ compliant.
Some convenience methods are also provided to implement promises made of
steps (creationix/step style).
See https://github.com/JeanHuguesRobert/l8/wiki/AboutParoles
Feedbacks are welcome :)
Yours,
Jean Hugues Robert, aka @jhr
--
--
Job Board: http://jobs