エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント3件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
promiseの無限ループはメモリリークする - Qiita
const timeout = ms => new Promise((resolve, reject) => setTimeout(() => resolve(), ms)) const sta... const timeout = ms => new Promise((resolve, reject) => setTimeout(() => resolve(), ms)) const start = (ctx) => { return timeout(ctx.timer).then(() => { return start(ctx) }).catch(e => { return start(ctx) }) } const main = () => start({timer:0}) main() const timeout = ms => new Promise((resolve, reject) => setTimeout(() => resolve(), ms)) const start = ctx => { timeout(ctx.timer).then(() => { start
2016/01/01 リンク