Skip to content

refactor 'onDispose' of observable disposable to be 'Event' #249358

Open
@legomushroom

Description

@legomushroom

The current implementation would invoke the provided callback immediately if an object is already disposed:

public onDispose(callback: () => void): IDisposable {

This is different from the default behaviour of the Event object, hence we need to make sure they are consistent.

See #248357 for more details.

Metadata

Metadata

Assignees

Labels

debtCode quality issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions