MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / disposeSources

Function disposeSources

run/src/index.ts:166–172  ·  view source on GitHub ↗
(sources: So)

Source from the content-addressed store, hash-verified

164}
165
166function disposeSources<So>(sources: So) {
167 for (const k in sources) {
168 if (sources.hasOwnProperty(k) && sources[k] && (sources[k] as any).dispose) {
169 (sources[k] as any).dispose();
170 }
171 }
172}
173
174function isObjectEmpty(obj: any): boolean {
175 return Object.keys(obj).length === 0;

Callers 1

runFunction · 0.85

Calls 1

disposeMethod · 0.80

Tested by

no test coverage detected