ataractic
Getting values from Deno KV in a Web Worker always return empty array despite working correctly o...
i went with another approach, using message events to send job data both ways between the main thread to the worker, and it works! however i'm pretty sure it impacts performance pretty badly as compared to the first idea.
19 replies
Is there an idiomatic/common/modern way of creating a queue of jobs to be executed one after anot...
i think i found my answer with this deno workers https://deno.land/manual@v1.36.3/runtime/workers
26 replies
Is there an idiomatic/common/modern way of creating a queue of jobs to be executed one after anot...
your function has one problem we should check if there is more tasks in the queue out of the
startTask()
function, because executing the same function inside it can potentially never get out if there is always jobs to be done and i'm sure it would cause memory congestion or leaks at some point.26 replies
Is there an idiomatic/common/modern way of creating a queue of jobs to be executed one after anot...
so my idea is to create an array of objects that contain necessary information about a task but i would need to create a sub process that runs along the web server and checks for jobs? how can i do such a process?
26 replies