Andy Wermke
Andy Wermke
Sorry for the late response, @pbelbin, but I have been sick the last few days. Regarding `ThreadType`… Yeah, that's really not so clear, but that's just a placeholder for ``....
Thanks for sharing, @Christilut! I totally get your point and it would be a big win in terms of user friendliness, BUT i currently have no idea how to work...
Be aware of the order in which expressions are evaluated: 1. `new Worker(…)` 2. `spawn(…)` The `Worker` constructor will be run and throw before `spawn()` is run.
Hey @ascandal! Sorry for the late response, somehow missed the notification. Good question! I actually haven't tried yet. Does it work?
Hey @ari62. You are not supposed to use the worker directly when using threads.js. What's your use case that you want to go low-level?
Ahhh, in this case what you want is #273 😉 Because using the low-level `postMessage` seems like a rather bad idea. For your use case, however, I don't see a...
Hey @aya1337, sorry, didn't get around to respond. I guess you are talking about the pool. Can you describe in a little more detail what that method(s) would look like...
I guess `cancelPending()` and `cancelAll()` would be good names. You can already [cancel arbitrary tasks](https://threads.js.org/usage-pool#cancelling-a-queued-task) today, but not all of them at once. I am just wondering if more people...
> And i can't really check which specific task is running on a certain worker and be able to cancel it I admit it's not super convenient, but can you...
@luiscarbonell Thank you for your feedback! What's your use case where you would benefit so much from passing functions?