bevy/crates/bevy_tasks/src
Mike 51201ae54c improve safety comment in scope function (#7534)
# Objective

- While working on scope recently, I ran into a missing invariant for the transmutes in scope. The references passed into Scope are active for the rest of the scope function, but rust doesn't know this so it allows using the owned `spawned` and `scope` after `f` returns. 

## Solution

- Update the safety comment
- Shadow the owned values so they can't be used.
2023-02-13 18:20:17 +00:00
..
iter small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
lib.rs Pipelined Rendering (#6503) 2023-01-19 23:45:46 +00:00
single_threaded_task_pool.rs Stageless: add a method to scope to always run a task on the scope thread (#7415) 2023-02-05 21:44:46 +00:00
slice.rs Document bevy_tasks and enable #![warn(missing_docs)] (#3509) 2022-01-16 04:53:22 +00:00
task_pool.rs improve safety comment in scope function (#7534) 2023-02-13 18:20:17 +00:00
task.rs Add is_finished to Task<T> (#6444) 2022-11-02 12:27:22 +00:00
thread_executor.rs Thread executor for running tasks on specific threads. (#7087) 2023-01-10 22:32:42 +00:00
usages.rs Migrate engine to Schedule v3 (#7267) 2023-02-06 02:04:50 +00:00