Last active
August 29, 2015 14:05
-
-
Save RinatMullayanov/9f1d7308ae375583ea5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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