-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a method to run read-only systems using
&World
(#8849)
# Objective Resolves #7558. Systems that are known to never modify the world implement the trait `ReadOnlySystem`. This is a perfect place to add a safe API for running a system with a shared reference to a World. --- ## Changelog - Added the trait method `ReadOnlySystem::run_readonly`, which allows a system to be run using `&World`.
- Loading branch information
Showing
2 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters