New issue
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
Microjob doesn't work with typescript #75
Comments
I tried to reduce this and it seems that the problem is the try {
// start worker pool
await start();
// this function will be executed in another thread
const res = await job(async () => {
return 1;
});
console.log(res);
} catch (err) {
console.error(err);
} while this successfully returns try {
// start worker pool
await start();
// this function will be executed in another thread
const res = await job(() => {
return 1;
});
console.log(res);
} catch (err) {
console.error(err);
} I tried looking up the error message but all I found were 2 GitHub issues that were unactionable and closed. Do you have a working example with typescript? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I try to run the example using typescript:
I get:
If I run the code from javascript it works. Is there a solution for this? ☝️
The text was updated successfully, but these errors were encountered: