on function

Implementation

Destroyable on(EventEmitter obj, String ev, EventHandler fn) {
  obj.on(ev, fn);
  return Destroyable(() => obj.off(ev, fn));
}