We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
URL
filename
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const pool = new Tinypool({ - filename: new URL('./worker.mjs', import.meta.url).href, + filename: new URL('./worker.mjs', import.meta.url), })
Worker
The text was updated successfully, but these errors were encountered:
This should be doable, as child_process.fork() also supports it: https://nodejs.org/api/child_process.html#child_processforkmodulepath-args-options
child_process.fork()
Though we'll need to make sure it works on Windows too, as we've had URL issues there before.
Sorry, something went wrong.
I was thinking change
tinypool/src/index.ts
Line 304 in ec78ce9
to
this.filename = filename instanceof URL ? filename.href : filename
I don't think it related to Node.js API support
No branches or pull requests
Worker
constructorThe text was updated successfully, but these errors were encountered: