We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb9f7a commit 11650c6Copy full SHA for 11650c6
src/env.h
@@ -1171,7 +1171,8 @@ class Environment : public MemoryRetainer {
1171
}
1172
1173
// cb will be called as cb(env) on the next event loop iteration.
1174
- // keep_alive will be kept alive between now and after the callback has run.
+ // Unlike the JS setImmediate() function, nested SetImmediate() calls will
1175
+ // be run without returning control to the event loop, similar to nextTick().
1176
template <typename Fn>
1177
inline void SetImmediate(Fn&& cb);
1178
0 commit comments