MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / abort

Method abort

examples/io/streams/modules/streams.js:90–94  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

88 listeners.splice(index, 1);
89 }
90 static abort(reason) {
91 const signal = new AbortSignal(AbortSignalBrand.token);
92 triggerAbortSignal(signal, reason);
93 return signal.self;
94 }
95 static any(iterable) {
96 const signal = new AbortSignal(AbortSignalBrand.token);
97 const sources = [];

Callers 1

WritableStreamAbortFunction · 0.45

Calls 1

triggerAbortSignalFunction · 0.85

Tested by

no test coverage detected