You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I do need to use worker threads in my application - as sometimes I have a long loop of select-select-update statements that need to run, and the main thread gets blocked during that whole time.
I utilized the template on that docs page and did some feature additions. Wanted to post them for a review here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I do need to use worker threads in my application - as sometimes I have a long loop of
select-select-update
statements that need to run, and the main thread gets blocked during that whole time.I utilized the template on that docs page and did some feature additions. Wanted to post them for a review here.
The code is here:
db-pool.mjs
db-worker.mjs
Salient features:
Looking for feedback on any bugs/gotchas, and review comments in general.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions