// https://nodejs.org/api/events.html#class-eventtarget. // Please read that link to understand important implementation differences.
You might want to check out XO, which includes this plugin.
Observable API 实际上是参考 RxJS 设计的。 • 范围:RxJS 可以处理任何类型的异步数据流,而 Observable API 主要针对 EventTarget 对象的事件流,尽管通过 new Observable() 可以更广泛使用。 • 功能集:Observable API 提供了丰富的操作符,但可能不如 RxJS 全面,后者有更多 ...