Unverified Commit 4444b6b9 authored by Anatoli Papirovski's avatar Anatoli Papirovski
Browse files

process: refactor nextTick for clarity

Do not share unnecessary information about nextTick state
between JS & C++, instead only track whether a nextTick
is scheduled or not.

Turn nextTickQueue into an Object instead of a class
since multiple instances are never created.

Other assorted refinements and refactoring.

PR-URL: https://github.com/nodejs/node/pull/17738


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
parent 35d8ef5a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment