Node.js で sleep を自分で実装しない

2026/01/29

sleep は Node.js の標準関数でできる。

import { setTimeout } from "node:timers/promises"
await setTimeout(1_000)

自分で実装しない。


Profile picture

あさくち ITエンジニアです。Web開発と競技プログラミング。 X(@paleApricot)