-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Use same format for all events and emitters #4164
Copy link
Copy link
Closed
Labels
type/debtTechnical debt that could slow us down in the long runTechnical debt that could slow us down in the long run
Milestone
Description
Currently there are a couple of patterns used for events:
private _onBinary = new EventEmitter<string>();
public get onBinary(): IEvent<string> { return this._onBinary.event; }and
private _onDispose = this.register(new EventEmitter<void>());
public readonly onDispose = this._onDispose.event;We should standardize on the second as it's simpler and avoids the getter at runtime.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/debtTechnical debt that could slow us down in the long runTechnical debt that could slow us down in the long run