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

Function next

packages/inquirer/src/utils/observable.ts:250–260  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

248 return {
249 observable,
250 next(value) {
251 if (completed || errored) {
252 return;
253 }
254
255 for (const { observer, subscription } of observers) {
256 if (!subscription.closed) {
257 callObserver(() => observer.next?.(value));
258 }
259 }
260 },
261 error(error) {
262 if (completed || errored) {
263 return;

Callers

nothing calls this directly

Calls 2

callObserverFunction · 0.85
nextMethod · 0.45

Tested by

no test coverage detected