Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Created October 13, 2017 05:00
Show Gist options
  • Save kjunichi/eef03b6402f5befd229460a6351ea126 to your computer and use it in GitHub Desktop.
Save kjunichi/eef03b6402f5befd229460a6351ea126 to your computer and use it in GitHub Desktop.
2017/10/13

Node.jsのprocess.nextTick

process.nextTick() とは、このコールバックの実行を、「イベントループの次の周の最初」に実行するように登録する API

process.nextTick関数の方が遥かにパフォーマンスが良い

process.nextTick関数を使用して登録された処理が複数ある場合には先に登録された処理から順番に実行

関連

アクセス解析タグ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment