GitShow/developit/task-worklet
developit

task-worklet

Task Worklet: explainer, polyfill and demos.

by developit
threadingthreadpoolworkerworker-poolworklet
Star on GitHubForknpm

JavaScript

278 stars4 forks2 contributorsQuiet · 8mo agoSince 2018Apache-2.0

Meet the team

See all 2 on GitHub →
developit
developit17 contributions
karol-majewski
karol-majewski1 contribution

Commit activity

Last 12 weeks · 0 commits

Full graph →

Recent PRs & issues

Quiet · 1 in progress · Last activity 8mo ago
See all on GitHub →
developit
Add worker-task-queue packageOpenPR
developit · 4y ago
pshihn
How does TaskQueue/TaskWorklet tie into WASM threads?OpenIssue

With threads in WASM coming up, there may be some merit to tying them with Task Queues

pshihn · 7y ago
matthewp
Long running tasksOpenIssue

The API is request/response based, and as such doesn't have a natural fit for long running tasks. How do you see such tasks fitting into the model? For example, let's say I had a worklet which connects to a chat service (via http2 or websocket) and receives chat messages. Currently you could poll the worklet for the next message like so: I guess this is ok but it also doesn't seem ideal to me. I think it would make the worklet side more complex in a lot of cases (you might have to keep some global state to know which messages have been sent to which requester). It would be nice if tasks could also return a stream or something, so that you could use to await each message.

matthewp · 7y ago

Recent fixes

View closed PRs →
TimvanScherpenzeel
Eval() in web workers / task workletClosedIssue

Hi, Thank you for this polyfill / proposal. I was wondering about the use of in web workers. As you probably know any code ran through is very unlikely to be optimised by V8 (see https://github.com/petkaantonov/bluebird/wiki/Optimization-killers). Would you know if this is also the case for in web workers? If so, wouldn't it make sense to avoid heavy long running code in the worker (that normally would become in the main thread after a short time)? Doesn't that defeat the whole point of using a worker in the first place (seeing as there is a reasonably significant cost to spawning and thread hopping)? Making a worker worth its weight in that case would be a significant challenge. Kind regards, Tim

TimvanScherpenzeel · 7y ago
karol-majewski
Fix the build taskMergedPR

Running was giving me the following error: After having updated to everything is 😌 again.

karol-majewski · 7y ago
DanielRuf
Add and enable TravisCIClosedIssue

Currently we have not yet a CI setup here. Would be good to have automatic tests for commits and PRs =)

DanielRuf · 7y ago
Structured data for AI agents

Repository: developit/task-worklet. Description: Task Worklet: explainer, polyfill and demos. Stars: 278, Forks: 4. Primary language: JavaScript. License: Apache-2.0. Topics: threading, threadpool, worker, worker-pool, worklet. Open PRs: 1, open issues: 3. Last activity: 8mo ago. Top contributors: developit, karol-majewski.

·@ofershap

Replace github.com with gitshow.dev