Skip to content

Commit

Permalink
src: update comment for SetImmediate()
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Mar 16, 2020
1 parent 25cb855 commit daf601f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/env.h
Original file line number Diff line number Diff line change
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 daf601f

Please sign in to comment.