Given that node is by default only single threaded there isn’t really an easy way to solve this. There is one though. Bases on generators/fibers you can add a sort of concurrent execution to node. There is a waitfor
implementation based on that.
Given that node is by default only single threaded there isn’t really an easy way to solve this. There is one though. Bases on generators/fibers you can add a sort of concurrent execution to node. There is a waitfor
implementation based on that.