情報更新

last update 03/28 19:41

ツイート検索

 

@tkihira
サイトメニュー
Twilogユーザー検索

Twilog

 

@tkihira

Takuo Kihira@tkihira

Stats Twitter歴
5,291日(2009/10/04より)
ツイート数
81,896(15.4件/日)

ツイートの並び順 :

表示するツイート :

2021年09月05日(日)11 tweetssource

 

非公開

retweeted at xx:xx:xx

9月5日

@tkihira

Takuo Kihira@tkihira

配列に Promise が入っていて、それを順次 await しながら処理するのって、for 文使わず書けますかね?

var a = Array(10).fill().map((_, i) => async () => {
await new Promise(r => setTimeout(r, 1000));
console.log(i);
});
(async() => {
for(const f of a) {
await f();
}
})();

posted at 20:00:51

このページの先頭へ

×