MCPcopy
hub / github.com/SBoudrias/Inquirer.js / unsubscribe

Method unsubscribe

packages/inquirer/src/utils/observable.ts:145–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143 return closed;
144 },
145 unsubscribe() {
146 if (closed) {
147 return;
148 }
149
150 closed = true;
151 if (teardownReady) {
152 runTeardown(teardown);
153 }
154 },
155 };
156
157 const safeObserver: Observer<T> = {

Callers 3

runTeardownFunction · 0.80
returnFunction · 0.80
errorFunction · 0.80

Calls 1

runTeardownFunction · 0.85

Tested by

no test coverage detected