bevy/crates/bevy_tasks/src
Chris Russell 52f88e5672
Loosen lifetime requirements for single-threaded Scope::spawn to match the multi-threaded version. (#12073)
# Objective

`Scope::spawn`, `Scope::spawn_on_external`, and `Scope::spawn_on_scope`
have different signatures depending on whether the `multi-threaded`
feature is enabled. The single-threaded version has a stricter signature
that prevents sending the `Scope` itself to spawned tasks.

## Solution

Changed the lifetime constraints in the single-threaded signatures from
`'env` to `'scope` to match the multi-threaded version.

This was split off from #11906.
2024-02-24 06:01:34 +00:00
..
iter Remove unnecessary path prefixes (#10749) 2023-11-28 23:43:40 +00:00
lib.rs Immediately poll the executor once before spawning it as a task (#11801) 2024-02-12 15:33:35 +00:00
single_threaded_task_pool.rs Loosen lifetime requirements for single-threaded Scope::spawn to match the multi-threaded version. (#12073) 2024-02-24 06:01:34 +00:00
slice.rs Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
task_pool.rs Fix a few Clippy lints (#11866) 2024-02-14 19:07:18 +00:00
task.rs Improve doc formatting. (#9840) 2023-09-18 19:43:56 +00:00
thread_executor.rs Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
usages.rs Global TaskPool API improvements (#10008) 2023-10-23 20:48:48 +00:00