Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Feature] Weak event manager class #1410

@pictos

Description

@pictos

Summary

In order to have a safe way to subscribe to events and avoid memory leaks we can implement this weak event manager class.

API Changes

In the docs they mentioned that pattern was created to solve the memory leak in WPF applications, so we need to see if that can be applied to Xamarin.Forms world. We can implement this as an internal feature and see how it goes. Doing it as internal will give us more speed to improve it as needed since we don't need to care about breaking it in future versions. If the community wants and/or when we feel comfortable with our implementation we can make it public for everyone.

I'll mark this issue as not-up-for-grabs because would be good if this first version was implemented at a fast speed.

Metadata

Metadata

Labels

feature-requestA request for a new feature.needs-approvalFeature request has been submitted but is awaiting final approval. Please do not implement before!not-up-for-grabsThis issue/PR is not up for grabs by the community but better handled by the maintainers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions