mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
74e7e72768
commit
064a6703a7
1 file changed
+2
-1
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user