Skip to content

Task - delete from public API or add an example? #4198

Open
@pubrrr

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's TaskPool.
  • 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.

Metadata

Assignees

No one assigned

    Labels

    A-TasksTools for parallel and async workC-DocsAn addition or correction to our documentationC-ExamplesAn addition or correction to our examples

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions