Related blog post: dpb587.me/blog/2013/01/14/terminating-gearman-workers-in-php.html
MIT License (http://opensource.org/licenses/mit-license.php)
Related blog post: dpb587.me/blog/2013/01/14/terminating-gearman-workers-in-php.html
MIT License (http://opensource.org/licenses/mit-license.php)
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)