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

Use default values for options #10

Closed tshemsedinov closed 2 years ago

tshemsedinov commented 2 years ago

Default values:

{
  pool: 5, // number of workers in thread pool
  wait: 2000, // maximum delay to wait for a free thread
  timeout: 5000, // maximum timeout for executing a functions
  monitoring: 5000, // event loop utilization monitoring interval
}

so options for norutine.init will be not required