MCPcopy
hub / github.com/di-sukharev/opencommit / unsubscribe

Function unsubscribe

out/cli.cjs:73508–73517  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73506 const err = reason instanceof Error ? reason : this.reason;
73507 controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
73508 }
73509 };
73510 let timer = timeout && setTimeout(() => {
73511 timer = null;
73512 onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
73513 }, timeout);
73514 const unsubscribe = () => {
73515 if (signals) {
73516 timer && clearTimeout(timer);
73517 timer = null;
73518 signals.forEach((signal2) => {
73519 signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
73520 });

Callers 2

onabortFunction · 0.85
cli.cjsFile · 0.85

Calls 3

clearTimeoutFunction · 0.85
forEachMethod · 0.45
unsubscribeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…