mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

Promise.allのつかいかたを理解できていない

違う種類のPromiseを一括で待つのに違う種類のPromiseをつっこむ配列を作って解決した結果を分割代入したんだけどなんだか冗長に見えるしなんなら次のthenチェーンにPromiseを渡す書き方もよくわかっていない←

https://github.com/zunda/mitome.in/blob/91ec370/docs/.vuepress/components/Encryption.vue#L

GitHubmitome.in/docs/.vuepress/components/Encryption.vue at 91ec37067e577b612ca7f712e61ff351b99b9dd6 · zunda/mitome.inExplore OpenPGP and other cryptography as an alternative for seals (mitome-in) - zunda/mitome.in
zunda

このコードだと追加した方の配列のPromiseは最初の1つだけしか解決されないみたい。難しいなあ…