-
Notifications
You must be signed in to change notification settings - Fork 47
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
async job example #25
Comments
Good catch! |
This problem is related to TS: the worker thread is run-time JS and it gets some JS-compiled from TS. |
After further investigation, I think I need to rewrite microjob back to JS, leaving just the typings definition. |
Not really? |
Also this package requires an experimental part of node anyway. We might as well compile TS to the latest version of JS. |
@ddwwcruz great suggestion! |
Hi,
I tried adding the async example as a test case, see https://github.com/larshp/microjob/commit/5dd6c7b5bdf6110c59fe88cf476b15583906877e
It gives
Error: __awaiter is not defined
, am I doing something wrong, missing any black magic?The text was updated successfully, but these errors were encountered: