Skip to content

NonSend resources cannot be accessed using World::resource_scope #4159

Closed
@alice-i-cecile

Description

@alice-i-cecile

The current bound on World::resource_scope is too tight: we require Send + Sync in the form of the Resource trait, when there's no need for it.

As a result, there's no way to use resource_scope with NonSend resources, which is a frustrating inconsistency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorC-UsabilityA targeted quality-of-life change that makes Bevy easier to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions