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

Use generics in LoadComponentAsync to increase usefulness #863

Merged
merged 5 commits into from
Jun 26, 2017

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented Jun 26, 2017

No description provided.

@peppy peppy mentioned this pull request Jun 26, 2017
2 tasks
@@ -142,7 +143,7 @@ internal Task LoadAsync(Game game, Drawable target, Action<Drawable> onLoaded =
return loadTask = Task.Run(() => Load(target.Clock, target.Dependencies)).ContinueWith(task => game.Schedule(() =>
{
task.ThrowIfFaulted();
onLoaded?.Invoke(this);
onLoaded?.Invoke((T)this);

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@smoogipoo
Copy link
Contributor

@Tom94 all in your hands to merge this.

@Tom94 Tom94 merged commit 25b660c into ppy:master Jun 26, 2017
@peppy peppy deleted the more-generic-in-async-load branch July 13, 2017 06:25
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.

None yet

3 participants