Skip to content

Commit

Permalink
src: update comment for SetImmediate()
Browse files Browse the repository at this point in the history
Refs: #31502 (comment)

PR-URL: #32300
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
addaleax authored and jasnell committed Mar 21, 2020
1 parent 74e7e72 commit 064a670
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/env.h
Expand Up @@ -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>
Expand Down

0 comments on commit 064a670

Please sign in to comment.