3 ms·
Firefox has had this for over 6 years through my async.js[1] library that relied in JavaScript 1.7's pythonic iterators and generators. The syntax is similar, a
by Sephr 11y ago
Firefox has had this for over 6 years through my async.js[1] library that relied in JavaScript 1.7's pythonic iterators and generators. The syntax is similar, as you have to mark/encapsulate functions with async() to use the library.
1. https://github.com/eligrey/async.js https://github.com/eligrey/async.js
- iso8859-1 11y agoWhat does your library offer over more popular alternatives such as js-csp, task.js, co, galaxy, or gen-run? [1]: https://github.com/ubolonton/js-csp https://github.com/ubolonton/js-csp [2]: http://taskjs.org/ http://taskjs.org/ [3]: https://github.com/tj/co https://github.com/tj/co [4]: https://github.com/bjouhier/galaxy https://github.com/bjouhier/galaxy [5]: https://github.com/creationix/gen-run https://github.com/creationix/gen-run
- Sephr 11y agoNot much, but every one of those came out years after mine and many of them are based on the same general flow as mine.
- LittleDan 11y agoAnd you can use that sort of library in ES6 because generators were standardized.
- deleted 11y ago[deleted]
- colordrops 11y agoYou may want to consider renaming your library. There's already a very popular lib with the same name: https://github.com/caolan/async https://github.com/caolan/async Edit: it appears that the caolan async lib came out after yours. Sorry for the confusion.
- Sephr 11y agoDon't you mean the other way around? Mine was out years before theirs. They should have googled the words "async.js" (which my lib was the top result for prior to caolan's repo) before naming their project.
- colordrops 11y agoApologies. That does appear to be the case.
- LewisJEllis 11y agoYears? Really? Not to nit, but the only way "years" is accurate here is if you mean "0.3 years". Your first commit was that January and Caolan's was that May, and when yours was "out" is debatable anyway since you don't have any releases tagged. I would hardly feel obligated to rename a project over a 4-month-old Github repository that doesn't even target the same platform (Firefox vs. async being originally Node-only).
- jdnier 11y agoSephr's eligrey/async.js predates (01/2010) the lib you mention, caolan/async (05/2010), at least git history–wise, although the latter looks actively developed.