Status: FixReviewNeeded
Owner: ----
Labels: Milestone-1.4 Type-Feature
New issue 4989 by
[hidden email]: SubscriptionRegistry>>deliver:
anAnnouncement
http://code.google.com/p/pharo/issues/detail?id=4989if there are no subscriptions, then simply return before protecting and
delivering the announcement.
deliver: anAnnouncement
| subsCopy |
"using a copy, so subscribers can unsubscribe from announcer "
"Use OrderedCollection , so unwind protection is easier"
--> subscriptions isEmpty ifTrue:[ ^ self ].
self protected: [ subsCopy := subscriptions as: OrderedCollection ].
self deliver: anAnnouncement to: subsCopy! !
Attachments:
SubscriptionRegistry-deliver.st 506 bytes
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker