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 <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Anna Henningsen authored and James M Snell committed 2020-03-20 17:48:10 -07:00
1 parent 74e7e72768
commit 064a6703a7
1 file changed
+2 -1
+2 -1
View File
@@ -1177,7 +1177,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 <typename Fn>
inline void SetImmediate(Fn&& cb);
template <typename Fn>