Interface AsyncBatchedObjectsOptions<T>

interface AsyncBatchedObjectsOptions<T> {
    size?: number;
    yieldAfter?: number;
    serialize(object, list): void;
}

Type Parameters

  • T

Hierarchy (view full)

Properties

Methods

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)

Methods