Interface CannotHaveOnDidDispose

Indicates than an object cannot have an onDidDispose event. Also allows an object to include a dispose function.

interface CannotHaveOnDidDispose {
    dispose?: UnsubscriberAsync;
    onDidDispose?: undefined;
}

Properties

Release resources and notify dependent services when tearing down an object

onDidDispose?: undefined

Event that emits when dispose is called on an object