Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - do not impl Component for Task #4113

Closed
wants to merge 1 commit into from

Conversation

mockersf
Copy link
Member

@mockersf mockersf commented Mar 5, 2022

Objective

  • Task are Component.
  • They should not.

Solution

  • Remove the impl, and update the example to show a wrapper.

#4052 for reference

@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Mar 5, 2022
@mockersf mockersf added A-Tasks Tools for parallel and async work C-Usability A simple quality-of-life change that makes Bevy easier to use and removed S-Needs-Triage This issue needs to be labelled labels Mar 5, 2022
@DJMcNab
Copy link
Member

DJMcNab commented Mar 5, 2022

You're right, I did link the wrong PR in #4052 (review); the link should have been #2975.

@mockersf
Copy link
Member Author

mockersf commented Mar 5, 2022

Oh I missed that was part of that PR!

@mockersf
Copy link
Member Author

mockersf commented Mar 5, 2022

This is better as a standalone PR as it seems #2975 may take some time before it could be merged

@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Mar 5, 2022
@@ -41,6 +41,9 @@ fn add_assets(
commands.insert_resource(BoxMaterialHandle(box_material_handle));
}

#[derive(Component)]
struct ComputeTransform(Task<Transform>);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, I also did this is #4102.

@alice-i-cecile
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Apr 22, 2022
# Objective

- `Task` are `Component`.
- They should not.

## Solution

- Remove the impl, and update the example to show a wrapper.

#4052 for reference
@bors bors bot changed the title do not impl Component for Task [Merged by Bors] - do not impl Component for Task Apr 22, 2022
@bors bors bot closed this Apr 22, 2022
@IceSentry
Copy link
Contributor

Should this be considered a breaking change?

@bjorn3 bjorn3 reopened this Apr 23, 2022
@bjorn3 bjorn3 closed this Apr 23, 2022
@bjorn3 bjorn3 added the C-Breaking-Change A breaking change to Bevy's public API that needs to be noted in a migration guide label Apr 23, 2022
exjam pushed a commit to exjam/bevy that referenced this pull request May 22, 2022
# Objective

- `Task` are `Component`.
- They should not.

## Solution

- Remove the impl, and update the example to show a wrapper.

bevyengine#4052 for reference
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
# Objective

- `Task` are `Component`.
- They should not.

## Solution

- Remove the impl, and update the example to show a wrapper.

bevyengine#4052 for reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Tasks Tools for parallel and async work C-Breaking-Change A breaking change to Bevy's public API that needs to be noted in a migration guide C-Usability A simple quality-of-life change that makes Bevy easier to use S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants