inherits EventEmitter with until.