webborer icon indicating copy to clipboard operation
webborer copied to clipboard

Refactor the worker, it's a mess!

Open Matir opened this issue 7 years ago • 1 comments

The worker is a mess of spaghetti. Let's clean it up.

Matir avatar Jun 06 '18 20:06 Matir

Step 1: instead of mangling in the worker, we could pass the task to an expander that feeds into the workqueue. Step 2: refactor the decision on whether to add dependent work into a separate function Step 3: split error handling & result building into new functions

Matir avatar Jun 07 '18 23:06 Matir