Open lmorchard opened 9 years ago
Yes, this is awesome and our examples should encourage this usage. The localForage tests look SOOOO much nicer with this style of promises. +1!
Yes, also see https://github.com/mozilla/node-firefox/issues/20 which is related
Promises can be chained, rather than nested like callbacks. That makes code much cleaner. Here's a quick sample of dirty code I'm using to exercise modules:
I'll probably work through the various libraries and submit PRs myself. But, here's an issue filed just in case I don't get around to it.