Browse Source

Add not about nextTick and setTimeout(fn, 0)

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
dc041628ce
  1. 2
      doc/api.txt

2
doc/api.txt

@ -125,6 +125,8 @@ Returns the memory usage of the Node process. It looks like this
+process.nextTick(callback)+::
On the next loop around the event loop call this callback.
This is *not* a simple alias to +setTimeout(fn, 0)+, it's much more
efficient.
+process.exit(code=0)+::
Ends the process with the specified code. By default it exits with the

Loading…
Cancel
Save