Actions
Task #1118
closedlightweight event emitter
Start date:
01/22/2014
Due date:
01/23/2014
% Done:
100%
Estimated time:
5.00 h
Description
Develop a lightweight event emitter, based of list of callbacks.
The event emitter is added as a field in the event source, and supports only one type of event.
Multiple events require multiple event emitters on the event source class.
Zero or more listeners can be registered on the event emitter.
The event could be triggered with zero or more arguments.
Type of arguments are determined by template arguments of the event emitter.
When the event is triggered, all listeners are invoked.
If there is zero event listener, nothing happens.
Actions