Open
Description
What problem does this solve or what need does it fill?
From the discussion in #4102: Should bevy keep Task
in it's public API?
What solution would you like?
Is there a use case where one needs to use Task
instead of PollableTask
? Currently, there are two examples on async tasks:
- one for the usage of
PollableTask
: A task that returns one result that can be polled on, using bevy'sTaskPool
. - one using custom threads and channels: Arbitrary async tasks, not using bevy's async functionality at all.
Either there is a use case for Task
-> add an example.
Or there is no use case -> remove Task
from the public API, the user should then either use PollableTask
or custom threads.