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

Remove some unsafe code #540

Merged
merged 1 commit into from Sep 21, 2020
Merged

Remove some unsafe code #540

merged 1 commit into from Sep 21, 2020

Conversation

ghost
Copy link

@ghost ghost commented Sep 21, 2020

Just removing some more unsafe code from the task system.

// Vector to gather results of all futures spawned during scope run
results: Vec<Arc<Mutex<Option<T>>>>,
}

impl<'scope, T: Send + 'static> Scope<'scope, T> {
Copy link
Author

Choose a reason for hiding this comment

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

Note that T doesn't have to be 'static here anymore.

@cart
Copy link
Member

cart commented Sep 21, 2020

Looks good to me. Thanks!

@cart cart merged commit 5aa7797 into bevyengine:master Sep 21, 2020
@ghost ghost deleted the remove-some-unsafe branch September 21, 2020 20:41
mrk-its pushed a commit to mrk-its/bevy that referenced this pull request Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant