4 ms·
would you mind giving an example of how you would code it so that that 1 request didn't block the rest? in a browser I'd go with a setTimeout or setInterval ha
by etherealG 15y ago
would you mind giving an example of how you would code it so that that 1 request didn't block the rest?
in a browser I'd go with a setTimeout or setInterval hack to "fork" another thread. is this the same in node?
- timrichard 15y agoIn Node Web Development [Packt], the author uses a Fibonacci algorithm as an example that could block the event loop. It outlines one solution where the calculation is split into callbacks dispatched through the event loop, making use of process.nextTick()