A pushable async generator that waits until the current value is consumed before allowing a new value to be pushed. Useful for controlling memory usage and data flow in async iterators. Version 2.0.5 is the latest stable release. It is part of the 'it' monorepo by achingbrain. Unlike a standard pushable that queues all values, this variant enforces backpressure by having push() return a promise that resolves only after the value is consumed. Ships TypeScript types. Typically used in conjunction with other 'it' packages for streaming data processing. The package is ESM-only starting from version 3 (currently v2 supports both CJS and ESM).
npm install it-queueless-pushableNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic backpressure: push() resolves only after the value is consumed by the async iterator.
Use import syntax or dynamic import(). If you need CommonJS, stick to v2.
Ensure producer and consumer run concurrently (e.g., in separate async functions or using Promise.resolve().then()).
Use named import: import { queuelessPushable } from 'it-queueless-pushable'Always push non-null, non-undefined values, or handle errors.
Use import { queuelessPushable } from 'it-queueless-pushable'Check pushable state before pushing, or do not end early.
Ensure consumer runs concurrently, e.g., via Promise.resolve().then(() => consume())
No dependency data recorded yet.