Buffer
Limitation
Limitation
This exercise wraps a synchronous generator in a promise and exposes a cancel function. Cancellation is sent back into the generator as an error so its own try/catch logic can respond.
JavaScript garbage collection automatically reclaims objects that running code can no longer reach. In Node.js, the V8 engine performs this work and its heap-size settings affect how much memory is available before collection pressure rises.
You can enable Node.js profiling on demand by sending the USR1 signal to the process.