-
This async function tries to return an array of values concurrently resolved by different Promises (i.e. an equivalent for `Promise.all()`):
``` js
async function demo() {
try {
let things = ['…
-
# Fetch (HTML5)
https://notfalse.net/29/XMLHttpRequest#jsonHandler
https://eyesofkids.gitbooks.io/javascript-start-from-es6/content/part4/ajax_fetch.html
可以取代Xhr 的語法,結構是 promise 語法(.fail .done),類似j…
-
A slightly modified (using IndexedDBShim and `console.log` instead of `alert()`) version of the Hello, world ES6/ES7 example that uses transactions is failing under Node.js.
## To reproduce
Afte…
-
Would love to get your feedback on my wishlist for Papaparse. We're going to dedicate some time for the team @ Flatfile before the end of year to move anything on this list we're agreed on to a next r…
-
On the homepage, you have a list of features.
It would be great to add call to actions, to prove usefulness and how to use that feature.
I compiled a list:
**All Platforms in One Go**
Check out …
-
# 同步事件&非同步事件
## 同步事件
同步事件跟字面上的意思相反,指的是做完一程序後才繼續往下做另一件事。換句話說,當一個程序在執行時,其他程序必須等待,直到這個程序完成後才能開始執行下一個程序。
## 非同步事件
非同步事件指的是不同程序可以同時進行。這種方式允許多個程序並行運行,提高了效率。
# promise&then
## 定義
Promise 是一個表示非同步運算的最終…
wdOq updated
4 months ago
-
> 原文地址: https://hackernoon.com/javascript-async-await-the-good-part-pitfalls-and-how-to-use-9b759ca21cda
>
> 原文作者: Charlee Li
>
> 翻译作者: [Xixi20160512](https://github.com/Xixi20160512)
`async/aw…
-
Hi Nicolas
First of all: nice work on the library! I prefer this approach over the approach of having to write in the graphql schema language, using a tool to generate typescript interfaces and fin…
-
If this is just a learning exercise, that's great, but I can't see the advantage in using this for real projects. Take for example the example in the readme, it can be written using normal crystal sim…
-
Recently `co` moved to using promises, or more specifically yielding promises.
https://github.com/tj/co
There's been talk of having APIs in NG return promises. What are the downsides/upsides of retu…