Skip to content

Latest commit

 

History

History
58 lines (48 loc) · 4.22 KB

promise.md

File metadata and controls

58 lines (48 loc) · 4.22 KB

Bookmarks tagged [promise]

https://stackoverflow.com/questions/56092083/async-await-in-angular-ngoninit

It is no different than what you had before. ngOnInit will return a Promise and the caller will ignore that promise. This means that the caller will not wait for everything in your method to finish ...


https://github.com/toniov/p-iteration


https://stackoverflow.com/questions/28703241/promise-constructor-with-reject-call-vs-throwing-error?...


http://jamesknelson.com/grokking-es6-promises-the-four-functions-you-need-to-avoid-callback-hell/

Apart from being new and shiny, Promises are a great way to clean up your code, reduce dependencies on external libraries, and prepare yourself for async and await in ES7. Developers who use them swea...


http://thecodebarbarian.com/unhandled-promise-rejections-in-node.js

Node.js 6.6.0 added a sporadically useful bug/feature: logging unhandled promise rejections to the console by default. In other words, the below script will print an error to the console: ...


https://github.com/domenic/chai-as-promised

Extends Chai with assertions about promises. Contribute to domenic/chai-as-promised development by creating an account on GitHub.


https://www.youtube.com/watch?v=viaF0hM8G94

An introduction to ES6 Promises. The example uses Angular 2 but the concepts apply to any ES6/ES2015 JavaScript code.

Great and easy to understand - compares callback code to promises...


https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises

A Promise is an object representing the eventual completion or failure of an asynchronous operation. A promi...