Gang Of Coders
Home
About Us
Contact Us
All Promise Solutions on Gang of Coders
Total of 163 Promise Solutions
How to check if a Promise is pending
Javascript
Promise
Ecmascript 6
Es6 Promise
What are the differences between Deferred, Promise and Future in JavaScript?
Javascript
Promise
Future
Deferred
Promise constructor with reject call vs throwing error
Javascript
Promise
Convert promise to bluebird
Javascript
node.js
Promise
Bluebird
What does this error mean — Uncaught TypeError: Already read?
Javascript
Promise
Typeerror
Promise callbacks returning promises
Javascript
node.js
Promise
Es6 Promise
What does event.waitUntil do in service worker and why is it needed?
Javascript
Promise
Dom Events
Service Worker
using a fetch inside another fetch in javascript
Javascript
Promise
Es6 Promise
Fetch Api
Returning an Axios Promise from function
Javascript
Promise
Axios
Catching Errors in JavaScript Promises with a First Level try ... catch
Javascript
node.js
Promise
Bluebird
Recursive Promise in javascript
Javascript
Recursion
Promise
When to use promise over async or packaged_task?
C++
Asynchronous
Promise
Future
Packaged Task
javascript, promises, how to access variable this inside a then scope
Javascript
Promise
Angular Promise
Wait for multiple promises to finish
Javascript
Angular
Promise
Ionic2
JavaScript asynchronous programming: promises vs generators
Javascript
node.js
Asynchronous
Promise
Ecmascript 6
Angularjs $http.get().then and binding to a list
Angularjs
Get
Promise
How to return a resolved promise from an AngularJS Service using $q?
Javascript
Angularjs
Promise
Angular Promise
multiple `.then()`s on single angularjs promise -- all use _original_ data
Javascript
Angularjs
Promise
Promise. What is the difference between return resolve() and resolve()?
Javascript
node.js
Promise
Promise.all: Order of resolved values
Javascript
Promise
Es6 Promise
Is Node.js native Promise.all processing in parallel or sequentially?
Javascript
node.js
Promise
Es6 Promise
Axios handling errors
Javascript
Promise
Axios
Are there still reasons to use promise libraries like Q or BlueBird now that we have ES6 promises?
Javascript
node.js
Promise
Q
Bluebird
How to access the value of a promise?
Javascript
Angularjs
Promise
Angular Promise
When is .then(success, fail) considered an antipattern for promises?
Javascript
node.js
Promise
Bluebird
Difference between microtask and macrotask within an event loop context
Javascript
node.js
Promise
Event Loop
How do I promisify native XHR?
Javascript
Xmlhttprequest
Promise
Why is my asynchronous function returning Promise { <pending> } instead of a value?
Javascript
node.js
Promise
How to find which promises are unhandled in Node.js UnhandledPromiseRejectionWarning?
node.js
Promise
Async Await
Warnings
Unhandled Exception
How can I synchronously determine a JavaScript Promise's state?
Javascript
Promise
Es6 Promise
Why does .json() return a promise?
Javascript
Asynchronous
Promise
Fetch Api
How to cancel an $http request in AngularJS?
Angularjs
Promise
Angular Promise
Angular Http
Cancellation
How do I wait for a promise to finish before returning the variable of a function?
Javascript
Parse Platform
Promise
Return from a promise then()
Javascript
Promise
How do I convert an existing callback API to promises?
Javascript
node.js
Callback
Promise
Bluebird
Is it bad practice to have a constructor function return a Promise?
Javascript
node.js
Architecture
Constructor
Promise
Syntax for an async arrow function
Javascript
Promise
Async Await
Arrow Functions
Angular HttpPromise: difference between `success`/`error` methods and `then`'s arguments
Angularjs
Promise
How to pass parameter to a promise function
Javascript
node.js
Promise
Parameter Passing
Es6 Promise
How do I properly test promises with mocha and chai?
node.js
Promise
mocha.js
Chai
Returning Promises from Vuex actions
Promise
vue.js
Es6 Promise
State Management
Vuex
Getting a UnhandledPromiseRejectionWarning when testing using mocha/chai
Javascript
node.js
Promise
mocha.js
Chai
typescript: error TS2693: 'Promise' only refers to a type, but is being used as a value here
Javascript
Typescript
Promise
How to wait for a JavaScript Promise to resolve before resuming function?
Javascript
Asynchronous
Promise
Async Await
Ecma
How do I access previous promise results in a .then() chain?
Javascript
Scope
Promise
Bluebird
Es6 Promise
What is the equivalent of Bluebird Promise.finally in native ES6 promises?
Javascript
Promise
Bluebird
How to create an Observable from static data similar to http one in Angular?
Typescript
Promise
Angular
Observable
Rxjs
Using setTimeout on promise chain
Javascript
Json
Promise
Settimeout
Break promise chain and call a function based on the step in the chain where it is broken (rejected)
Javascript
Angularjs
Promise
Node JS Promise.all and forEach
Javascript
node.js
Asynchronous
Promise
Futures vs. Promises
C++
C++11
Promise
Future
Understanding promises in Node.js
Javascript
node.js
Promise
Placement of catch BEFORE and AFTER then
Javascript
node.js
Promise
Bluebird
Can promises have multiple arguments to onFulfilled?
Javascript
Promise
Why can I not throw inside a Promise.catch handler?
Javascript
Asynchronous
Promise
Throw
Es6 Promise
Handling multiple catches in promise chain
Javascript
node.js
Promise
Bluebird
AngularJS : Where to use promises?
Angularjs
Deferred
Promise
Cancel a vanilla ECMAScript 6 Promise chain
Javascript
Promise
Cancellation
Es6 Promise
How to include multiple js files using jQuery $.getScript() method
Javascript
Jquery
Html
Promise
Why does javascript ES6 Promises continue execution after a resolve?
Javascript
Promise
Ecmascript 6
Es6 Promise
How to promisify Node's child_process.exec and child_process.execFile functions with Bluebird?
Javascript
node.js
Promise
Bluebird
How to unwrap the type of a Promise?
Typescript
Promise
How to make a promise from setTimeout
Javascript
Settimeout
Promise
What is the explicit promise construction antipattern and how do I avoid it?
Javascript
Promise
Q
Bluebird
Es6 Promise
Promise : then vs then + catch
Javascript
Promise
What is the difference between JavaScript promises and async await?
Javascript
Asynchronous
Promise
Async Await
Can you resolve an angularjs promise before you return it?
Angularjs
Promise
How do I await multiple promises in-parallel without 'fail-fast' behavior?
Javascript
Asynchronous
Promise
Async Await
Promise - is it possible to force cancel a promise
Javascript
Promise
Cancellation
How to use fetch in TypeScript
Typescript
Promise
Fetch Api
Why is 'this' undefined inside class method when using promises?
Javascript
node.js
Promise
This
Q
JavaScript array .reduce with async/await
Javascript
Promise
Async Await
Reduce
Ecmascript Next
Using async/await with a forEach loop
Javascript
node.js
Promise
Async Await
Ecmascript 2017
Correct way to write loops for promise.
Javascript
node.js
Promise
Bluebird
Using success/error/finally/catch with Promises in AngularJS
Angularjs
Promise
Angularjs Http
Promise.resolve vs new Promise(resolve)
Javascript
Promise
Bluebird
TypeError: Cannot read property 'then' of undefined
Javascript
Angularjs
Promise
What does $.when.apply($, someArray) do?
Javascript
Jquery
Asynchronous
Promise
JavaScript Promises - reject vs. throw
Javascript
Promise
How to return many Promises and wait for them all before doing other stuff
Javascript
Asynchronous
Ecmascript 6
Promise
Es6 Promise
Promises, pass additional parameters to then chain
Javascript
Promise
Ecmascript 6
Es6 Promise
Rethrowing error in promise catch
Javascript
Promise
Wait until all promises complete even if some rejected
Javascript
Promise
Es6 Promise
Wait for all promises to resolve
Angularjs
Promise
Angular Promise
Angularjs $q.all
Angularjs
Promise
Q
How do you properly return multiple values from a Promise?
Javascript
Promise
Q
Promise.all().then() resolve?
Javascript
node.js
Promise
Correct Try...Catch Syntax Using Async/Await
Javascript
Promise
Async Await
Try Catch
Ecmascript 2017
jQuery deferreds and promises - .then() vs .done()
Jquery
Promise
Jquery Deferred
Promise Retry Design Patterns
Javascript
node.js
Promise
Does never resolved promise cause memory leak?
Javascript
Angularjs
Memory Leaks
Promise
Angular Promise
Aren't promises just callbacks?
Javascript
Callback
Promise
Q
Bluebird
How to handle the if-else in promise then?
node.js
Asynchronous
Promise
Is there any analog to a 'finally' in jQuery AJAX calls?
Javascript
Jquery
Ajax
Promise
How to reject a promise from inside then function
Javascript
Promise
How to specify resolution and rejection type of the promise in JSDoc?
Javascript
node.js
Documentation
Jsdoc
Promise
Replacing callbacks with promises in Node.js
Javascript
node.js
Promise
Creating a (ES6) promise without starting to resolve it
Javascript
Promise
Es6 Promise
fromPromise does not exist on type Observable
Angular
Promise
Rxjs
Observable
Es6 Promise
How do Clojure futures and promises differ?
Clojure
Terminology
Future
Promise
When is the body of a Promise executed?
Javascript
Ecmascript 6
Promise
Es6 Promise
return value after a promise
Javascript
node.js
Promise
Q
How do I tell if an object is a Promise?
Javascript
Promise
Q
Bluebird
Es6 Promise
nodejs - How to promisify http.request? reject got called two times
node.js
Promise
Httprequest
Promise equivalent in C#
C#
Promise
Async Await
Task
Future
Deferred versus promise
Jquery
Jquery Deferred
Promise
async/await in Angular `ngOnInit`
Angular
Typescript
Asynchronous
Promise
Observable
What is std::promise?
C++
Multithreading
C++11
Promise
Standard Library
How to Check Whether an Angular $q promise Is Resolved
Angularjs
Promise
Q
How can I execute array of promises in sequential order?
Javascript
ember.js
Promise
rsvp.js
How to support promises in Internet Explorer 11?
Javascript
Internet Explorer
Promise
Internet Explorer-11
Polyfills
Angular 2: Convert Observable to Promise
Typescript
Angular
Promise
Observable
How to always run some code when a promise is fulfilled in Angular.js
Javascript
Angularjs
Promise
Deferred
Finally
Are nested promises normal in node.js?
Javascript
node.js
Promise
How to add delay to promise inside then
Javascript
Asynchronous
Callback
Promise
Resolve Javascript Promise outside the Promise constructor scope
Javascript
Promise
Es6 Promise
Why does TypeScript use "Like" types?
Javascript
Typescript
Types
Promise
How can I fetch an array of URLs with Promise.all?
Javascript
Promise
Es6 Promise
Fetch Api
How to cancel a HTTPRequest in Angular 2?
Http
Promise
Angular
Using promise function inside Javascript Array map
Javascript
Arrays
Promise
Axios Interceptors retry original request and access original promise
Javascript
vue.js
Promise
Vuejs2
Axios
How to debug javascript promises?
Javascript
Promise
Es6 Promise
How to catch uncaught exception in Promise
Javascript
Exception
Promise
What do double brackets mean in javascript and how to access them
Javascript
Promise
Es6 Promise
While loop with promises
node.js
Loops
Promise
Q
vue-router — Uncaught (in promise) Error: Redirected from "/login" to "/" via a navigation guard
vue.js
Promise
Vue Router
What is the difference between Promises and Observables?
Angular
Promise
Rxjs
Angular Promise
Angular Observable
Native Support for Promises in Node.js
Javascript
node.js
Promise
Chaining Observables in RxJS
Javascript
Promise
Reactive Programming
Rxjs
Rxjs5
Is it a good practice using Observable with async/await?
Javascript
Angular
Typescript
Promise
Observable
AngularJS resource promise
Angularjs
Promise
Angular Resource
angular $q, How to chain multiple promises within and after a for-loop
Angularjs
Promise
Angular Promise
Deferred
Use Promise to wait until polled condition is satisfied
Javascript
Promise
Wait for Angular 2 to load/resolve model before rendering view/template
Angular
Promise
Observable
Dependency Resolver
Typescript Promise rejection type
Javascript
Typescript
Promise
How is a promise/defer library implemented?
Javascript
Promise
Why is `Promise.then` called twice in a React component but not the console.log?
Javascript
Reactjs
Promise
Resolve promises one after another (i.e. in sequence)?
Javascript
Promise
Q
Sequential
Serial Processing
Error: Type is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor
Angular
Promise
What's the difference between returning value or Promise.resolve from then()
Javascript
Angularjs
Promise
Q
Angular JS: how to bind to promises
Angularjs
Promise
Unit-test promise-based code in Angularjs
Javascript
Angularjs
Promise
Use async await with Array.map
Javascript
Typescript
Promise
Async Await
Ecmascript 2017
Do I need to return after early resolve/reject?
Javascript
Promise
Es6 Promise
fetch: Reject promise with JSON error object
Javascript
Promise
Es6 Promise
Fetch Api
NodeJS Timeout a Promise if failed to complete in time
Javascript
node.js
Promise
Settimeout
Error handling in AngularJS http get then construct
Javascript
Angularjs
Promise
Angular Promise
Angular Http
Promise All with Axios
Javascript
Promise
Axios
Basic Javascript promise implementation attempt
Javascript
Promise
Angular's $q.reject() vs deferred.reject()
Javascript
Angularjs
Promise
Why is `.catch(err => console.error(err))` discouraged?
Javascript
node.js
Promise
Try Catch
error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'?
Typescript
Promise
Resolve
JavaScript naming convention for promises?
Javascript
Naming Conventions
Deferred
Promise
Promise inside promise: what's the correct way to return a variable from the child promise? (JS)
Javascript
Promise
What's the difference between a Future and a Promise?
Java
Concurrency
Future
Promise
How to return from a Promise's catch/then block?
Javascript
Asynchronous
Promise
Promise reject() causes "Uncaught (in promise)" warning
Javascript
Promise
Es6 Promise
Catch Block
async/await always returns promise
Javascript
Asynchronous
Promise
Async Await
Ecmascript 2017
Is there a way to tell if an ES6 promise is fulfilled/rejected/resolved?
Javascript
Promise
Ecmascript 6
Koa / Co / Bluebird or Q / Generators / Promises / Thunks interplay? (Node.js)
node.js
Generator
Promise
Bluebird
Koa
How to synchronize a sequence of promises?
Javascript
Promise
Is there a way to short circuit async/await flow?
Javascript
Promise
Async Await
Cancellation
Ecmascript Next
Building a promise chain recursively in javascript - memory considerations
Javascript
Recursion
Promise