kriskowal/q
View on GitHub ↗ ★ 14,987 JavaScript archived
A promise library for JavaScript
51 mentions on Hacker News by 44 people: 2 stories, 49 comments · first 2010-09-16 · latest 2016-10-16
20082026
-
…too many other, stronger options available today. [1] http://wiki.commonjs.org/wiki/Promises/A [2] https://github.com/kriskowal/q/graphs/contributors
comment by SomeCallMeTim · 2016-10-16 · in PHP 7 deployment at Dailymotion -
I found this document : https://github.com/kriskowal/q/tree/v1/design very helpful to understand how promises work behind the scene Also liked being able to access the author's reasoning and the motivations behind his design decisions
comment by hotBacteria · 2015-11-23 · in How do Promises Work? -
…[6] https://github.com/petkaantonov/bluebird/blob/master/API.md#... [7] https://github.com/kriskowal/q/tree/v1/examples/async-genera... [8] http://taskjs.org/ [9] https://babeljs.io/docs/learn-es6/#generators [10] https://facebook
comment by tlrobinson · 2015-05-22 · in Node.js: Cluster vs. Async -
I was thinking "Why not q?" That was started in 2010. https://github.com/kriskowal/q
comment by onion2k · 2015-04-14 · in RQ – A small JavaScript library for managing asychronicity -
…the JS library q, which has support for stack traces that span async jumps if a promise errors out https://github.com/kriskowal/q#long-stack-traces
comment by chaitanya · 2014-12-24 · in Promises and Lisp -
…limited to all the various promise libraries such as when.js( https://github.com/cujojs/when ), q ( https://github.com/kriskowal/q ), and bluebird ( https://github.com/petkaantonov/bluebird ). Not to mention the Async library (…
comment by CitizenKane · 2014-11-26 · in Yahoo Mail moving to React -
…it :) `thenResolve` is a standard method on a promise object implemented by the Q library ( https://github.com/kriskowal/q/wiki/API-Reference#promisethe... ) I used, it's equivalent to .then () -> accum In other words, `thenResolve`…
comment by klibertp · 2014-08-03 · in Pun: A small library to enable pattern matching in JavaScript and CoffeeScript -
…rewriten to use promises. [1] http://strongloop.com/strongblog/comparing-node-js-promises-... [2] https://github.com/kriskowal/q#long-stack-traces [3] https://github.com/btford/zone.js/#zonefork [4] https://github.com/petkaantonov/bluebird
comment by munro · 2014-05-29 · in Zones – Robust error handling and flow control for Node.js -
In case you were unaware, there's a very popular and lovely promises library for javascript named q. https://github.com/kriskowal/q
comment by rcsorensen · 2014-05-19 · in Hoodie – Fast web app development -
I use Q and its asynchronous promises for JavaScript works as promised :) https://github.com/kriskowal/q
comment by ihenriksen · 2014-04-26 · in Better JavaScript Promises -
…{ alert('Error: ' + err); }) resp.finally(function() { hideLoadingScreen(); }) [1] https://github.com/kriskowal/q/wiki/API-Reference [2] https://docs.angularjs.org/api/ng/service/$q
comment by IgorPartola · 2014-04-25 · in Better JavaScript Promises -
q.js can properly handle exceptions thrown in a handler. see the examples here: https://github.com/kriskowal/q#chaining
comment by dharbin · 2014-04-16 · in Comparing Node.js Promises, Try/Catch, Angular Zone.js and Zone -
And a promise library: https://github.com/kriskowal/q
comment by mercurial · 2014-03-03 · in Q – A Data Language -
…promises are based on stripped down version of Kris Kowal's Q. You may want to check it out: https://github.com/kriskowal/q
comment by danabramov · 2013-12-17 · in JavaScript Promises: There and back again -
…for technologists who haven't fully changed into thinking about things in "the node way." [1] https://github.com/kriskowal/q [2] https://github.com/substack/stream-handbook
comment by CGamesPlay · 2013-12-02 · in Why does it seem like threading and fibers in Node have been abandoned? -
…promise library will matter very little. [1]: http://research.google.com/pubs/pub40673.html [2]: https://github.com/kriskowal/q/wiki/API-Reference#interfacin... [3]: https://github.com/kriskowal/q-connection [4]:…
comment by domenicd · 2013-10-04 · in Bluebird – A full-featured, fast promises library for JavaScript -
…with a try/catch statement, and will push caught exceptions into the error pipeline [2]. [1] https://github.com/kriskowal/q#long-stack-traces [2] https://github.com/kriskowal/q#handling-errors
comment by munro · 2013-09-30 · in So you're thinking of tracking your JS errors -
…resource on implementing promises are the design documentation on Q (promise library) repository: https://github.com/kriskowal/q/blob/master/design/README.js (HN discussion: https://news.ycombinator.com/item?id=4767941 )
comment by ville · 2013-08-21 · in Promises/A+ - understanding the spec through implementation -
…be used elsewhere in the code for other purposes (because they are no longer tightly coupled). [0]: https://github.com/kriskowal/q
comment by prezjordan · 2013-08-17 · in Callbacks are Pretty Okay -
https://github.com/kriskowal/q solves this today without needing to cross compile. http://koush.com/post/yield-await-v8 will address this natively however unlike Q or Kal you can't start using it today.
comment by tuxracer · 2013-08-17 · in Kal – a clean JavaScript alternative without callbacks -
Promises are the only real solution. https://github.com/kriskowal/q
comment by embwbam · 2013-07-26 · in Node v0.10.14 (Stable) -
…least 2009 [1]), I'd also suggest picking a different name for another reason: searchability. [1] https://github.com/kriskowal/q/commit/9191ce4c803cc3f8a01fb6...
comment by tlrobinson · 2013-07-16 · in Show HN: Introducing Q.js, a library for modern web apps -
…case you didn't already know, there is already a very well known javascript async library called Q. https://github.com/kriskowal/q
comment by enobrev · 2013-07-16 · in Show HN: Introducing Q.js, a library for modern web apps -
There's a very well-known JS library already named "Q", here: https://github.com/kriskowal/q I'd suggest a name change.
comment by nicksergeant · 2013-07-16 · in Show HN: Introducing Q.js, a library for modern web apps -
…have to make it more friendly. We try to relegate the "list of functions" to the API reference at https://github.com/kriskowal/q/wiki/API-Reference
comment by domenicd · 2013-07-08 · in Promises/A+ -
Q has `Q.all()` which does the same thing: https://github.com/kriskowal/q/wiki/API-Reference#promiseall
comment by jasondenizac · 2013-07-08 · in Promises/A+ -
…straight callbacks which enforce a serial approach. Check out this link to q's documentation: https://github.com/kriskowal/q#combination
comment by drhayes9 · 2013-07-08 · in Promises/A+ -
…it quite hard to locate any "Promises for Dummies" type guide. Most of the libraries like "q" etc ( https://github.com/kriskowal/q ) just give you a list of functions to use and related syntax but I have yet to come across a guide that…
comment by SeanDav · 2013-07-08 · in Promises/A+ -
…er.mozilla.org/en-US/docs/DOM/element.classLi... [2] http://jibbering.com/2002/4/httprequest.html [3] https://github.com/kriskowal/q
comment by gildas · 2013-04-14 · in Why It's Time to Sunset jQuery -
…If you want to see how I've used promises, you can take a look at my work on Github [2]. [1] https://github.com/kriskowal/q [2] https://github.com/fruchtose/muxamp
comment by fruchtose · 2013-03-31 · in Callbacks are imperative, promises are functional -
…easy to follow the flow. A better approach, IMHO, would be to use a promise library like q [1] 1: https://github.com/kriskowal/q/
comment by mercurial · 2013-03-13 · in Callback hell is a design choice. -
I'd have to say Q promises ( https://github.com/kriskowal/q , adds promises to JS for much cleaner async code). Even though it's not "cool" in the sense that it's very low level and doesn't do fancy UI stuff, my asynchronous code has…
comment by beefsack · 2013-02-17 · in Ask HN: What is the coolest JS library out there? -
Promises, with q is my preferred method. https://github.com/kriskowal/q
comment by tgriesser · 2013-02-08 · in Ask HN: How do you deal with the NodeJS Pyramid of Doom? -
The usage of Object.freeze() was removed recently and is slated for release in v0.9 https://github.com/kriskowal/q/commit/ef6c1b9ce35c7bf3949c70...
comment by tlrobinson · 2013-01-30 · in What's so great about JavaScript Promises? -
…the different libs, I've found that Q has one of the better APIs, but it's also the slowest. https://github.com/kriskowal/q/issues/153 But that's because it uses Object.freeze(), which the js V8 penalizes with a slowdown, when iterating…
comment by iamwil · 2013-01-29 · in What's so great about JavaScript Promises? -
…error handling system today. I've been staying sane through the use of the 'Q' promise package ( https://github.com/kriskowal/q ). For example, in the below code chunk any errors thrown in makeEmailConfirmation or sendEmailConfirmation…
comment by PhrosTT · 2012-12-22 · in Node.js error handling -
You can read this file with syntax highlighting on GitHub: https://github.com/kriskowal/q/blob/master/design/README.js
comment by dinduks · 2012-11-10 · in Designing JS promises (2011) -
…https://groups.google.com/forum/#!msg/nodejs/jaufClrXU9U/ov5... q seems to be a popular choice. https://github.com/kriskowal/q
comment by ikawe · 2012-11-03 · in Escape from Callback Hell: Callbacks are the modern goto -
…get better, but it does. In addition, there is: Q (implementation of the CommonJS Promises spec) https://github.com/kriskowal/q Streamline.js https://github.com/Sage/streamlinejs Await.js (New, inspired by Tame/IcedCS)…
comment by doublerebel · 2012-11-02 · in Escape from Callback Hell: Callbacks are the modern goto -
…solution in js is to use an event emitter ( http://nodejs.org/api/events.html ) or promises (like https://github.com/kriskowal/q ), the latter of which seems to be pretty close to what this article is talking about. Is there a fundamental…
comment by jcampbell1 · 2012-11-02 · in Escape from Callback Hell: Callbacks are the modern goto -
…</ul> where $http.get() returns a promise just works. [1]: http://docs.angularjs.org/api/ng.$q [2]: https://github.com/kriskowal/q
comment by cletus · 2012-10-21 · in Missing the Point of Promises -
…and report it all back to the original caller. There are libraries that make this better (example: https://github.com/kriskowal/q ). But since they're not built into the language itself, you end up with more verbose code that's harder to…
comment by ef4 · 2012-10-02 · in JavaScript Sucks. -
…to find it through search :) Edit: forget it. Someone else mentioned it in another comment: https://github.com/kriskowal/q/
comment by pooriaazimi · 2012-07-12 · in Thoughts on Rails, Node, and the web apps of today -
…handled directly). Promises might be baked into ES6. For now these are the best 2 implementations: https://github.com/kriskowal/q/ https://github.com/cujojs/when
comment by MatthewPhillips · 2012-07-12 · in Thoughts on Rails, Node, and the web apps of today -
…important example is the Promise monad used by some Javascript async libraries: (for example, see https://github.com/kriskowal/q or http://dojotoolkit.org/documentation/tutorials/1.6/promises/ ) Basically, creating a new promise is the…
comment by ufo · 2012-07-02 · in Introduction to monads in JavaScript -
Also, q is a really nice javascript library that models the same pattern: https://github.com/kriskowal/q
comment by philbo · 2012-04-08 · in An introduction to jQuery Deferreds -
…(obviously you don't), I would recommend using promises for any sizable Node.js application. https://github.com/kriskowal/q
comment by hammerdr · 2011-02-17 · in The Technology Behind Convore -
…[1] for most things and Tim Caswell's Do [2] for simple sequencing (a la shell scripts). [1] http://github.com/kriskowal/q/blob/master/q.js [2] http://howtonode.org/do-it-fast
comment by grayrest · 2010-09-16 · in Node.js For My Tiny Ruby Brain: Keeping Promises