James M Snell
James M Snell
Worker threads in general have a `ready` event, yes. In Piscina, `runTask()` will not attempt to dispatch tasks to workers until after the worker signal they are ready.
Sorry for the later response. I'm not sure a ready event for piscina is useful, to be honest. Tasks are queued until there's a worker available and there's really no...
@addaleax ... any ideas why the dependency update here would break the atomics test?
No, that's not currently possible. We're limited here by how Node.js worker threads are loaded and those do not currently support initialization by passing a function.
@addaleax would likely be able to explain what's happening here a lot better than I can since she wrote that part of the workers code... generally tho... process.stdout and process.stderr...
Will do so moving forward. 3.0.0 was major because we dropped support for Node.js 10
btw, there is a changelog at the end of the README.md ... for the 3.1.0 release I just did I added links to the new commits.
No worries! I often forget that it's there also!! 🤣
*Possibly* ... there are quite a few differences between Node.js workers and Web workers but many of the basic concepts hold. What may be easiest would be a separate `piscina-web`...
Going to leave this open a feature request. There are definitely some possibility here but *most likely* this would need to be implemented as a completely separate module.