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 a3848e5 commit 7a346f6Copy full SHA for 7a346f6
src/env.h
@@ -1172,7 +1172,8 @@ class Environment : public MemoryRetainer {
1172
}
1173
1174
// cb will be called as cb(env) on the next event loop iteration.
1175
- // keep_alive will be kept alive between now and after the callback has run.
+ // Unlike the JS setImmediate() function, nested SetImmediate() calls will
1176
+ // be run without returning control to the event loop, similar to nextTick().
1177
template <typename Fn>
1178
inline void SetImmediate(Fn&& cb);
1179
0 commit comments