Closed Wondertan closed 2 years ago
Kind ping @gammazero
When starting a new worker, I want that new worker to run the new task directly, instead of pulling it off the work queue. Since the behavior was slightly different, I split it into two functions. Other than that, there is no reason it cannot be the same function.
This PR is more like a question, more than a fix, as I think
worker
andstartWorker
are in split for a reason, which I just probably don't get. Can you pls explain it? I couldn't find the answer in git history and out of curiosity.If there is no reason for that, then this PR should decrease the load on the runtime by spawning fewer routines in general and one less per worker in particular. Thanks for the great library anyway.