Skip to content Skip to sidebar Skip to footer
Showing posts with the label Q

Wrapping Jquery $.ajax Behind A Facade In Q.js Without Refactoring

It's possible this should be on code review, but here we go! I have a fairly large application … Read more Wrapping Jquery $.ajax Behind A Facade In Q.js Without Refactoring

How To Add Promise To Event Handler In Javascript

Now I want to wrap amqp with Promise Q, here are the codes Sender.prototype.createConnection_ = fun… Read more How To Add Promise To Event Handler In Javascript

How To Retry An Xhr Request Which Returns A Promise Recursively For Atleast N Times On Status 0

I have written the below piece of code. makeRequest gets called and I want to retry this when xhr s… Read more How To Retry An Xhr Request Which Returns A Promise Recursively For Atleast N Times On Status 0

"iterating" Throw Promises Does Not Let To Generate Different Ids

Reading some amazing tutorials about promises, I've discovered that, if I need to interate thro… Read more "iterating" Throw Promises Does Not Let To Generate Different Ids

Sequencing Async Operations Followed By Onresult Call

Fiddle: http://jsfiddle.net/smartdev101/eLxxpjp3/ Inside asyncAction function call, a promise has … Read more Sequencing Async Operations Followed By Onresult Call

Equivalent Behaviour Of 'jquery.active' In Q

In my c# selenium webdriver tests I occasionally have to make use of: public void WaitForJQuery(Tim… Read more Equivalent Behaviour Of 'jquery.active' In Q

How Can I Properly Call A List Of Async Functions In Order?

I am attempting to write a 'robocopy /mir' like function within Node.js and cannot seem to … Read more How Can I Properly Call A List Of Async Functions In Order?

Running Q On Page With Require.js

I am trying to run a widget on a web page that leverages the Q library. Unfortunately, the page al… Read more Running Q On Page With Require.js