Join GitHub today
Allow subscriber to be collected if MessagingCenter is the only reference to it #617
Description of Change
If the target of a MessagingCenter callback is the subscriber, keep a weak reference to the subscriber to allow it to be garbage collected.
Also refactored MessagingCenter slightly because I got tired of miscounting the angle brackets.