bevy/crates/bevy_tasks/src
Noah d0c9e2197a
Make FakeTask public on singlethreaded context (#10517)
# Objective

- When compiling bevy for both singlethreaded and multithreaded contexts
and using `Task` directly, you can run into errors where you expect a
`Task` to be returned but `FakeTask` is instead. Due to `FakeTask` being
private the only solution is to ignore the return at all however because
it *is* returned that isn't totally clear. The error is confusing and
doesn't provide a solution or help figuring it out.


## Solution

- Made `FakeTask` public and added brief documentation providing a use
(none) that helps guide usage (no usage) of FakeTask.
2023-11-15 14:29:43 +00:00
..
iter
lib.rs Make FakeTask public on singlethreaded context (#10517) 2023-11-15 14:29:43 +00:00
single_threaded_task_pool.rs Make FakeTask public on singlethreaded context (#10517) 2023-11-15 14:29:43 +00:00
slice.rs
task_pool.rs add test for nested scopes (#10026) 2023-10-05 06:05:43 +00:00
task.rs Improve doc formatting. (#9840) 2023-09-18 19:43:56 +00:00
thread_executor.rs fix clippy::default_constructed_unit_structs and trybuild errors (#9144) 2023-07-13 22:23:04 +00:00
usages.rs Global TaskPool API improvements (#10008) 2023-10-23 20:48:48 +00:00