Project

General

Profile

Actions

Task #1118

closed

lightweight event emitter

Added by Junxiao Shi over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Core
Target version:
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

Also available in: Atom PDF