Skip to content

Instantly share code, notes, and snippets.

@RinatMullayanov
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RinatMullayanov/9f1d7308ae375583ea5f to your computer and use it in GitHub Desktop.
Save RinatMullayanov/9f1d7308ae375583ea5f to your computer and use it in GitHub Desktop.
// http://youtu.be/q7KfOnuINmo
// пока есть активный таймер LibUV не может завершить процесс
// в видео описанны способы как 'убить' таймеры
console.log(process.memoryUsage());
// 1. Влияние на процесс: ref/unref
// 2. process.nextTick(f) это setTimeout(f, 0) ДО I/O (событий ввода-вывода)
// 3. setImmediate(f) это setTimeout(f, 0) ПОСЛЕ I/O
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment