From dc041628ce51aa87fe1733ebb773f875fdbd4607 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 22 Feb 2010 13:58:48 -0800 Subject: [PATCH] Add not about nextTick and setTimeout(fn, 0) --- doc/api.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api.txt b/doc/api.txt index 942058f199..75a3c3acd0 100644 --- a/doc/api.txt +++ b/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