interface AsyncBatchedBytesOptions {
    size?: number;
    yieldAfter?: number;
}

Hierarchy (view full)

Properties

Properties

size?: number

The minimum number of bytes that should be in a batch (default: 1MB)

yieldAfter?: number

If this amount of time passes, yield all the bytes in the batch even if they are below size (default: 0 - e.g. on every tick)