We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was trying to test smolscale with bevy, and there's some code that needs to bridge sync to async multiple times. Similar to the following:
let mut x = 0; smolscale::block_on(async move { let task = smolscale::spawn(async move { smolscale::block_on(async move { let task = smolscale::spawn(async move { x += 1; }); task.await; }); }); task.await; });
but things end up deadlocking. I can also get a deadlock with just nesting the block_on's, but not sure if this is related.
let mut x = 0; smolscale::block_on(async move { smolscale::block_on(async move { x += 1; }); });
The text was updated successfully, but these errors were encountered:
I will look into this issue! This is something I've noticed as well.
Sorry, something went wrong.
This is fixed in the latest version.
nullchinchilla
No branches or pull requests
I was trying to test smolscale with bevy, and there's some code that needs to bridge sync to async multiple times. Similar to the following:
but things end up deadlocking. I can also get a deadlock with just nesting the block_on's, but not sure if this is related.
The text was updated successfully, but these errors were encountered: