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 ...
- 📆 published on: 2019-05-11
- tags: angular, typescript, asynchronous, promise, observable
https://github.com/toniov/p-iteration
- tags: javascript, foreach, map, promise, promises
https://stackoverflow.com/questions/28703241/promise-constructor-with-reject-call-vs-throwing-error?...
- tags: javascript, promise
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...
- 📆 published on: 2018-10-01
- tags: javascript, promise, promises
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: ...
- 📆 published on: 2017-04-04
- tags: node.js, promise, error-handling
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.
- tags: chai, promise, testing
- source code
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...
- 📆 published on: 2016-10-10
- tags: javascript, angular, promise
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...
- tags: javascript, promise