-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Merged by Bors] - Use correct terminology for a NonSend
run condition panic
#7841
Conversation
assert!( | ||
condition_system.is_send(), | ||
"Condition `{}` accesses thread-local resources. This is not currently supported.", | ||
"Condition `{}` accesses `NonSend` resources. This is not currently supported.", | ||
condition_system.name() | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to note that this assert currently does nothing, since a system's "send-ness" only gets set when it's initialized. This assert never gets triggered, so instead a panic occurs later on when the system actually tries to access a NonSend
resource from the wrong thread. I'm not sure what the best solution to this is, but it's probably worth opening an issue about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow it's from like Bevy 0.2!
bors r+ |
# Objective There is a panic that occurs when creating a run condition that accesses `NonSend` resources, but it refers to them as 'thread-local' resources instead. ## Solution Correct the terminology.
Pull request successfully merged into main. Build succeeded:
|
NonSend
run condition panicNonSend
run condition panic
…ne#7841) # Objective There is a panic that occurs when creating a run condition that accesses `NonSend` resources, but it refers to them as 'thread-local' resources instead. ## Solution Correct the terminology.
Objective
There is a panic that occurs when creating a run condition that accesses
NonSend
resources, but it refers to them as 'thread-local' resources instead.Solution
Correct the terminology.