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

Function rejectPending

packages/inquirer/src/utils/observable.ts:318–322  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

316 };
317
318 const rejectPending = (error: unknown) => {
319 while (pending.length > 0) {
320 pending.shift()?.reject(error);
321 }
322 };
323
324 const iterator: AsyncIterator<T> = {
325 next() {

Callers 2

errorFunction · 0.85
[Symbol.asyncIterator]Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected