metarhia / noroutine

Goroutine analogue for Node.js, spreads I/O-bound routine calls to utilize thread pool (worker_threads) using balancer with event loop utilization. 🌱
https://metarhia.com
MIT License
120 stars 11 forks source link

Debug mode: disable multi-threading #19

Open tshemsedinov opened 2 years ago

tshemsedinov commented 2 years ago

For debug mode we can add parameter debug: boolean

noroutine.init({
  modules: [module1, module2],
  debug: true,
});

this will disable multi-threading and ballancing.

Bortnyak commented 2 years ago

@tshemsedinov Does it mean if debug mode is turned on - we should execute our modules in only one thread? As regular nodejs application flow?

tshemsedinov commented 2 years ago

Yes @Bortnyak

VasilSvirid commented 2 years ago

For debug mode we can add parameter debug: boolean

noroutine.init({
  modules: [module1, module2],
  debug: true,
});

this will disable multi-threading and ballancing.

For debug mode we can set monitoring: 246060*1000 or even more