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: Prevent panicking in VirtualTaskManagerExt::spawn_and_block_on #4322

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

theduke
Copy link
Contributor

@theduke theduke commented Nov 23, 2023

This helper method previously would panic if the inner async task failed
to send a result, instead of returning an error that can be handled.

It also:

  • used an mpsc channel. a oneshot channel is better here
  • used the InlineWaker to wait for the result, which is also redundant
    because tokio channels have sync receive methods

This helper method previously would panic if the inner async task failed
to send a result, instead of returning an error that can be handled.

It also:
* used an mpsc channel. a oneshot channel is better here
* used the InlineWaker to wait for the result, which is also redundant
  because tokio channels have sync receive methods
Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan left a comment

Choose a reason for hiding this comment

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

The ?? looks a bit funny, but this totally makes sense.

@syrusakbary syrusakbary enabled auto-merge January 9, 2024 10:21
@syrusakbary syrusakbary merged commit 49a2123 into master Jan 30, 2024
50 of 52 checks passed
@syrusakbary syrusakbary deleted the wasix-load-module-improvement branch January 30, 2024 10:38
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.

3 participants