From 1bcae49e655f776e3a7b329ec28c93fd63edbbb3 Mon Sep 17 00:00:00 2001 From: XadillaX Date: Sun, 25 Apr 2021 11:07:07 +0800 Subject: [PATCH 1/2] process: make `process.nextTick()` awaitable --- doc/api/process.md | 17 ++++++++++++++++- lib/internal/process/task_queues.js | 20 ++++++++++++++++++++ test/parallel/test-next-tick.js | 15 +++++++++++++-- 3 files changed, 49 insertions(+), 3 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index 2212cc9c8958a9..9298022ef71016 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1639,7 +1639,7 @@ console.log(process.memoryUsage.rss()); // 35655680 ``` -## `process.nextTick(callback[, ...args])` +## `process.nextTick([callback][, ...args])`