MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / checkSignal

Function checkSignal

lib.commonjs/utils/fetch.js:109–115  ·  view source on GitHub ↗
(signal)

Source from the content-addressed store, hash-verified

107exports.FetchCancelSignal = FetchCancelSignal;
108// Check the signal, throwing if it is cancelled
109function checkSignal(signal) {
110 if (signal == null) {
111 throw new Error("missing signal; should not happen");
112 }
113 signal.checkSignal();
114 return signal;
115}
116/**
117 * Represents a request for a resource using a URI.
118 *

Callers 1

#sendMethod · 0.70

Calls 1

checkSignalMethod · 0.45

Tested by

no test coverage detected