Status: New
Owner: ----
New issue 3253 by Dionisiygod: Announcer. Extraction ActionSequence
creation in subscription logic
http://code.google.com/p/pharo/issues/detail?id=3253
ActionSequence creation in subscribtion logic of announcer should be
extracted. With this little change different kind of announcing logic could
be simple implemented (for example, asynchronous announcer with its own
actionSequence implementation)
Announcer>>subscribe: anAnnouncementClass do: aValuable
| actions |
subscriptions ifNil: [ subscriptions := IdentityDictionary new ].
actions := subscriptions at: anAnnouncementClass ifAbsent: [ self
createActionSequence ].
subscriptions at: anAnnouncementClass put: (actions copyWith:
aValuable).
^ aValuable
Attachments:
Announcer-subscribedo.st 479 bytes
Announcer-createActionSequence.st 218 bytes