Top "Promise" questions

Promises are a tactic for deferred computing, suitable for several styles of concurrency: thread and event loop concurrency for local computation, and both synchronous and asynchronous remote messaging.

Can promises have multiple arguments to onFulfilled?

I'm following the spec here and I'm not sure whether it allows onFulfilled to be called with multiple arguments. For …

javascript promise
Aren't promises just callbacks?

I've been developing JavaScript for a few years and I don't understand the fuss about promises at all. It seems …

javascript callback promise q bluebird
Angularjs $http.get().then and binding to a list

I have a list that looks like this: <li ng-repeat="document in DisplayDocuments()" ng-class="IsFiltered(document.Filtered)"> <…

angularjs get promise
Returning Promises from Vuex actions

I recently started migrating things from jQ to a more structured framework being VueJS, and I love it! Conceptually, Vuex …

promise vue.js es6-promise state-management vuex
Wait for all promises to resolve

So I have a situation where I have multiple promise chains of an unknown length. I want some action to …

angularjs promise angular-promise
Why does .json() return a promise?

I've been messing around with the fetch() api recently, and noticed something which was a bit quirky. let url = "http://…

javascript asynchronous promise fetch-api
AngularJS resource promise

I've got a simple controller that use $resource : var Regions = $resource('mocks/regions.json'); $scope.regions = Regions.query(); I'm using …

angularjs promise angular-resource
What are the differences between Deferred, Promise and Future in JavaScript?

What are the differences between Deferreds, Promises and Futures? Is there a generally approved theory behind all these three?

javascript promise future deferred
Chaining Observables in RxJS

I'm learning RxJS and Angular 2. Let's say I have a promise chain with multiple async function calls which depend on …

javascript promise reactive-programming rxjs rxjs5
Wait for Angular 2 to load/resolve model before rendering view/template

In Angular 1.x, UI-Router was my primary tool for this. By returning a promise for "resolve" values, the router would …

angular promise observable dependency-resolver