Skip to content

Access bevy_ecs World in threads? #15486

Closed Answered by SkiFire13
supagu asked this question in Q&A
Discussion options

You must be logged in to vote

As the error message mentions, your problem is with the MutexGuard returned by lock not being Send, rather than World. You should be able to solve this by wrapping those two lines in a block, so that the MutexGuard is not in scope when the next .await is called.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by supagu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants