MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / trackDisposable

Function trackDisposable

src/platform/common/utils/lifecycle.ts:26–29  ·  view source on GitHub ↗
(x: T)

Source from the content-addressed store, hash-verified

24}
25
26export function trackDisposable<T extends IDisposable>(x: T): T {
27 disposableTracker?.push(x);
28 return x;
29}
30
31/**
32 * Disposes of the value(s) passed in.

Callers 8

apiAccess.tsFile · 0.90
changeCellStateFunction · 0.90
initializeLoggersFunction · 0.90
createMethod · 0.90
toDisposableFunction · 0.85
constructorMethod · 0.85
constructorFunction · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected