This repository was archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 455
This repository was archived by the owner on May 1, 2024. It is now read-only.
[Feature] Weak event manager class #1410
Copy link
Copy link
Closed
Labels
feature-requestA request for a new feature.A request for a new feature.needs-approvalFeature request has been submitted but is awaiting final approval. Please do not implement before!Feature 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 maintainersThis issue/PR is not up for grabs by the community but better handled by the maintainers
Description
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.
YZahringer
Metadata
Metadata
Assignees
Labels
feature-requestA request for a new feature.A request for a new feature.needs-approvalFeature request has been submitted but is awaiting final approval. Please do not implement before!Feature 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 maintainersThis issue/PR is not up for grabs by the community but better handled by the maintainers