Skip to content
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

fix(ext/node): worker_threads.receiveMessageOnPort doesn't panic #23406

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

bartlomieju
Copy link
Member

Follow up to #23386.
Instead of using async recv() method, it was replaced
with a poll based function that doesn't hold onto
RefCell borrow across await point.

Fixes #23362

Copy link
Contributor

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bartlomieju bartlomieju enabled auto-merge (squash) April 16, 2024 18:13
@bartlomieju bartlomieju merged commit 760d64b into denoland:main Apr 16, 2024
17 checks passed
@bartlomieju bartlomieju deleted the fix_message_port_again branch April 16, 2024 18:47
littledivy pushed a commit to littledivy/deno that referenced this pull request Apr 19, 2024
…oland#23406)

Follow up to denoland#23386.
Instead of using async `recv()` method, it was replaced
with a poll based function that doesn't hold onto
RefCell borrow across await point.

Fixes denoland#23362
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

op_message_port_recv_message_sync BorrowMutErrror in node:worker
2 participants