-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add await into worker.ts #5910
Add await into worker.ts #5910
Conversation
I am running this code on Mac, if I did not add that 'await' in the front of the console.log I have the error: deno run --allow-read main.ts hello world thread 'deno-worker-0' panicked at 'Failed to post message to host: TrySendError { kind: Disconnected }', cli/ops/worker_host.rs:142:7 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread 'main' panicked at 'Worker thread panicked: Any', cli/ops/worker_host.rs:329:11
Ubuntu 18 also panicks but with slightly different stacktrace pointing at src/libcore/result.rs:1188:5:
|
Duplicate of #5334 |
@samuelteixeiras thanks for the patch, but it's not really a valid solution. The problem you're seeing is described in #5334 and requires fixing Rust ops. As a temporary workaround you can add short delay before closing the worker. Closing without merge |
thank you for the response @bartlomieju and @WooDzu |
I am running this code on Mac, if I did not add that await in the front of the console.log I have the error:
If that await before the console.log is not be needed this is possible bug.