Aucune remarque pour cette diapositive
Hook: how many used promises?jQuery promises or real promises?Want to talk about this in three parts: a ground-up view of the promise abstraction; a historical perspective on recent developments; and a practical guide to using them in your code.
What I really mean by this is “callback-accepting functions are a hack.”
First benefit: separating outputs from inputs.
- Consistency gains: never call back with more than one fulfillment value or rejection reason.
Just like a series of imperative statements.
And yet, we lived with it.
Spec development process through GitHub issue trackerPull requests, implementers weighing in, bugs opened by randoms, etc.Test suite!
Q has:Large, powerful API surfaceAdapters for Node.jsProgress supportSome support for long stack traces