Since EventEmitter is essentially a subject (implements Observable and Observer), it should just alias to Subject for JS, and match the structure and semantics for Dart (note: it should be validated that Subject semantics can be mapped to Dart).
Also, we should rename EventEmitter, since it's often confused with node's EventEmitter. What about just calling it Subject?
CC: @robwormald @vsavkin @Blesh
Since EventEmitter is essentially a subject (implements
ObservableandObserver), it should just alias toSubjectfor JS, and match the structure and semantics for Dart (note: it should be validated thatSubjectsemantics can be mapped to Dart).Also, we should rename
EventEmitter, since it's often confused with node'sEventEmitter. What about just calling it Subject?CC: @robwormald @vsavkin @Blesh