This post originated from an RSS feed registered with Agile Buzz
by Martin Fowler.
Feed Title: Martin Fowler's Bliki
Feed URL: http://martinfowler.com/feed.atom
Feed Description: A cross between a blog and wiki of my partly-formed ideas on software development
an asynchronous operation. You can use these to schedule further
activity after the asynchronous operation has completed by supplying
aPromise = someAsyncOperation();
// runs if all went well
// runs if something went wrong
// runs either way
As well as providing a clear interface to schedule activity
with asynchronous tasks, they also compose.