Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WinterTC55/iter-streams
/ functions
Functions
947 in github.com/WinterTC55/iter-streams
⨍
Functions
947
◇
Types & classes
113
↓ 3 callers
Function
isUint8ArrayBatch
* Check if result is already a Uint8Array[] (fast path).
src/pull.js:627
↓ 3 callers
Function
makeSource
(id: number)
samples/10-merging-concat.ts:138
↓ 3 callers
Function
mean
* Calculate mean of an array
benchmarks/utils.ts:53
↓ 3 callers
Function
messageSource
()
samples/01-basic-creation.ts:196
↓ 3 callers
Function
normalizeAsyncSource
* Normalize an async streamable source, yielding batches of Uint8Array. * * @param source - The async streamable source (can be sync or async iterab
src/from.js:498
↓ 3 callers
Function
normalizeSyncSource
* Normalize a sync streamable source, yielding batches of Uint8Array. * * @param source - The sync streamable source * @yields Uint8Array[] batches
src/from.js:287
↓ 3 callers
Method
rejectPendingWrites
* Reject all pending writes with an error.
src/broadcast.ts:628
↓ 3 callers
Function
serverLogs
(name: string, delay: number)
samples/10-merging-concat.ts:274
↓ 3 callers
Function
settle
(resolve, reject, d, v)
src/consumers.js:50
↓ 3 callers
Function
settle
(resolve, reject, d, v)
src/from.js:41
↓ 3 callers
Function
settle
(resolve, reject, d, v)
src/pull.js:50
↓ 3 callers
Function
source
()
samples/09-resource-management.ts:28
↓ 3 callers
Function
source
()
benchmarks/01-throughput.ts:406
↓ 3 callers
Method
tryTrimBuffer
* Trim buffer from front if all consumers have advanced. * Notifies writer if buffer space becomes available.
src/broadcast.ts:400
↓ 3 callers
Function
uppercaseByte
(b: number)
benchmarks/bench-bun-file-streams.ts:67
↓ 3 callers
Function
uppercaseByte
(b: number)
benchmarks/bench-deno-file-streams.ts:64
↓ 3 callers
Function
verb
(n)
samples/util.js:14
↓ 3 callers
Function
verb
(n)
src/share.js:20
↓ 3 callers
Function
verb
(n)
src/ringbuffer.js:5
↓ 3 callers
Function
verb
(n)
src/duplex.js:20
↓ 3 callers
Function
verb
(n)
src/push.js:20
↓ 3 callers
Function
xorTS
()
benchmarks/20-memory-allocations.ts:42
↓ 3 callers
Function
xorTS
()
benchmarks/21-memory-sustained.ts:45
↓ 2 callers
Method
_getDesiredSize
* Check if we can accept more writes (for desiredSize).
src/broadcast.ts:374
↓ 2 callers
Method
_notifyConsumers
* Notify consumers that have pending reads.
src/broadcast.ts:417
↓ 2 callers
Method
_writevSlow
(chunks: (Uint8Array | string)[], options?: WriteOptions)
src/broadcast.ts:527
↓ 2 callers
Function
addPrefix
(prefix: string)
samples/10-merging-concat.ts:357
↓ 2 callers
Function
arrayBuffer
* Collect bytes as ArrayBuffer from an async or sync source. * * @param source - Iterable or async iterable yielding Uint8Array[] batches * @param
src/consumers.js:370
↓ 2 callers
Function
arrayBufferSync
* Collect bytes as ArrayBuffer from a sync source. * * @param source - Sync iterable yielding Uint8Array[] batches * @param options - Optional limi
src/consumers.js:145
↓ 2 callers
Function
bytes
( source: AsyncIterable<Uint8Array[]> | Iterable<Uint8Array[]>, options?: ConsumeOptions )
src/consumers.ts:157
↓ 2 callers
Function
bytesSync
( source: Iterable<Uint8Array[]>, options?: ConsumeSyncOptions )
src/consumers.ts:55
↓ 2 callers
Function
collect
(source: AsyncIterable<Uint8Array[]>)
src/duplex.test.ts:19
↓ 2 callers
Function
collect
(r)
benchmarks/html/benchmarks.js:232
↓ 2 callers
Method
consumerReturn
* Consumer returned early (break from iteration).
src/push.ts:406
↓ 2 callers
Method
consumerThrow
* Consumer threw an error.
src/push.ts:421
↓ 2 callers
Function
createAsyncPipeline
* Create an async pipeline from source through transforms.
src/pull.ts:466
↓ 2 callers
Function
createAsyncPipeline
* Create an async pipeline from source through transforms.
src/pull.js:958
↓ 2 callers
Method
createPendingWrite
* Create a pending write promise, optionally racing against a signal. * Same pattern as PushQueue.createPendingWrite().
src/broadcast.ts:577
↓ 2 callers
Function
createRandom
* Simple seeded random number generator for reproducible text. * Using a simple Linear Congruential Generator.
samples/cloudflare-worker/src/index.ts:59
↓ 2 callers
Function
createSyncPipeline
* Create a sync pipeline from source through transforms.
src/pull.ts:324
↓ 2 callers
Function
createSyncPipeline
* Create a sync pipeline from source through transforms.
src/pull.js:587
↓ 2 callers
Function
createWebWriter
* Create a Writer that writes to a Web WritableStream. * * Features: * - Proper backpressure handling (waits for ready) * - Error propagation * -
samples/13-web-streams-interop.ts:133
↓ 2 callers
Method
fail
(reason?: any)
samples/util.ts:77
↓ 2 callers
Method
fail
* Put queue into terminal error state.
src/push.ts:338
↓ 2 callers
Function
flattenTransformYieldSync
* Flatten transform yield to Uint8Array chunks (sync).
src/pull.ts:130
↓ 2 callers
Function
flattenTransformYieldSync
* Flatten transform yield to Uint8Array chunks (sync).
src/pull.js:160
↓ 2 callers
Function
fmt
(r: BenchmarkResult)
benchmarks/17-bun-direct-streams.ts:161
↓ 2 callers
Function
fmtMs
(ms: number)
benchmarks/21-memory-sustained.ts:212
↓ 2 callers
Function
fmtPct
(part: number, whole: number)
benchmarks/21-memory-sustained.ts:216
↓ 2 callers
Function
infiniteSource
(id: string)
samples/10-merging-concat.ts:165
↓ 2 callers
Function
inner
()
src/from.test.ts:129
↓ 2 callers
Function
isPullOptions
* Check if a value is PullOptions (object without transform or write property).
src/utils.js:70
↓ 2 callers
Function
isToAsyncStreamable
* Check if value implements ToAsyncStreamable protocol.
src/from.js:118
↓ 2 callers
Function
isToAsyncStreamable
* Check if value implements ToAsyncStreamable protocol.
src/from.ts:59
↓ 2 callers
Function
isUint8ArrayBatch
* Check if value is already a Uint8Array[] batch (fast path check).
src/from.js:484
↓ 2 callers
Function
isUint8ArrayBatch
* Check if value is already a Uint8Array[] batch (fast path check).
src/from.ts:348
↓ 2 callers
Function
isWriter
* Check if a value is a Writer (has write method).
src/pull.ts:72
↓ 2 callers
Function
isWriter
* Check if a value is a Writer (has write method).
src/pull.js:119
↓ 2 callers
Function
manyChunks
()
src/share.test.ts:111
↓ 2 callers
Function
normalizeAsyncSource
* Normalize an async streamable source, yielding batches of Uint8Array. * * @param source - The async streamable source (can be sync or async iterab
src/from.ts:361
↓ 2 callers
Function
normalizeAsyncValue
* Normalize an async streamable yield value to Uint8Array chunks. * Recursively flattens arrays, iterables, async iterables, promises, and protocol c
src/from.js:337
↓ 2 callers
Function
normalizeAsyncValue
* Normalize an async streamable yield value to Uint8Array chunks. * Recursively flattens arrays, iterables, async iterables, promises, and protocol c
src/from.ts:269
↓ 2 callers
Function
parsePipeToArgs
* Parse variadic arguments for pipeTo/pipeToSync. * Returns { transforms, writer, options }
src/pull.ts:86
↓ 2 callers
Function
parsePipeToArgs
* Parse variadic arguments for pipeTo/pipeToSync. * Returns { transforms, writer, options }
src/pull.js:129
↓ 2 callers
Function
parsePullArgs
* Parse variadic arguments for pull/pullSync. * Returns { transforms, options }
src/utils.js:80
↓ 2 callers
Function
percentile
* Calculate percentile
benchmarks/utils.ts:69
↓ 2 callers
Function
processTransformResultAsync
* Process transform result (async).
src/pull.ts:215
↓ 2 callers
Function
processTransformResultAsync
* Process transform result (async).
src/pull.js:323
↓ 2 callers
Function
pull
(controller)
benchmarks/04-pipelines.ts:55
↓ 2 callers
Function
reject
(value)
src/consumers.js:62
↓ 2 callers
Function
reject
(value)
src/pull.js:66
↓ 2 callers
Method
rejectPendingDrains
* Reject all pending drains with an error.
src/broadcast.ts:649
↓ 2 callers
Method
rejectPendingReads
* Reject all pending reads with an error.
src/push.ts:518
↓ 2 callers
Method
setWriter
Register the writer for cancel notification.
src/broadcast.ts:114
↓ 2 callers
Function
source
()
samples/13-web-streams-interop.ts:421
↓ 2 callers
Function
source1
()
samples/10-merging-concat.ts:322
↓ 2 callers
Function
source2
()
samples/10-merging-concat.ts:327
↓ 2 callers
Function
startIterator
(state: IteratorState, index: number)
src/consumers.ts:539
↓ 2 callers
Function
step
(op)
src/from.js:12
↓ 2 callers
Function
tap
* Create a pass-through transform that observes chunks without modifying them. * Useful for logging, hashing, metrics, etc. * * @param callback - C
src/consumers.js:550
↓ 2 callers
Function
tapSync
* Create a sync pass-through transform that observes chunks without modifying them. * * @param callback - Called with each batch or null (flush sign
src/consumers.js:569
↓ 2 callers
Method
throw
(_error?: Error)
src/share.ts:201
↓ 2 callers
Function
toHex
* Convert bytes to hex string
samples/cloudflare-worker/src/index.ts:70
↓ 2 callers
Method
toString
()
src/from.test.ts:221
↓ 2 callers
Function
tryStringCoercion
* Try to coerce an object to string using custom methods. * Returns null if object has no custom string coercion.
src/from.js:182
↓ 2 callers
Function
tryStringCoercion
* Try to coerce an object to string using custom methods. * Returns null if object has no custom string coercion.
src/from.ts:138
↓ 2 callers
Method
unshift
* Prepend an item to the head. O(1) amortized.
src/ringbuffer.ts:39
↓ 2 callers
Method
waitForBufferSpace
* Wait for buffer space based on backpressure policy. * Returns false if cancelled while waiting, or throws if strict policy.
src/share.ts:264
↓ 2 callers
Method
waitForDrain
* Wait for backpressure to clear (desiredSize > 0). * Returns a Promise that: * - Resolves with `true` when buffer has space * - Resolves wit
src/push.ts:366
↓ 2 callers
Method
write
(chunk: Uint8Array | string, _options?: WriteOptions)
benchmarks/10-advanced-features.ts:360
↓ 2 callers
Method
writeSync
(chunk: Uint8Array | string)
benchmarks/10-advanced-features.ts:371
↓ 2 callers
Method
writevSync
Try to writev synchronously. Returns true if successful, false if buffer full.
src/types.ts:188
↓ 1 callers
Function
adopt
(value)
samples/util.js:3
↓ 1 callers
Function
adopt
(value)
src/share.js:9
↓ 1 callers
Function
adopt
(value)
src/consumers.js:10
↓ 1 callers
Function
adopt
(value)
src/duplex.js:9
↓ 1 callers
Function
adopt
(value)
src/broadcast.js:9
↓ 1 callers
Function
adopt
(value)
src/pull.js:9
↓ 1 callers
Function
adopt
(value)
src/push.js:9
↓ 1 callers
Function
applyStatefulAsyncTransform
* Apply a single stateful async transform to a source.
src/pull.ts:425
← previous
next →
201–300 of 947, ranked by callers