From 7a346f63d6cb568735187e12233fc590da4c3d44 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Mon, 16 Mar 2020 12:25:21 +0100 Subject: [PATCH] src: update comment for SetImmediate() Refs: https://github.com/nodejs/node/pull/31502#issuecomment-599242824 PR-URL: https://github.com/nodejs/node/pull/32300 Reviewed-By: Colin Ihrig Reviewed-By: David Carlier Reviewed-By: James M Snell --- src/env.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/env.h b/src/env.h index aa819b1ef5128b..c04a8ef179fc99 100644 --- a/src/env.h +++ b/src/env.h @@ -1172,7 +1172,8 @@ class Environment : public MemoryRetainer { } // cb will be called as cb(env) on the next event loop iteration. - // keep_alive will be kept alive between now and after the callback has run. + // Unlike the JS setImmediate() function, nested SetImmediate() calls will + // be run without returning control to the event loop, similar to nextTick(). template inline void SetImmediate(Fn&& cb); template