ixfx
    Preparing search index...

    Function chunk

    • Queue from source, emitting when thresholds are reached. The resulting Reactive produces arrays.

      Can use a combination of elapsed time or number of data items.

      By default options are OR'ed together.

      // Emit data in chunks of 5 items
      chunk(source, { quantity: 5 });
      // Emit a chunk of data every second
      chunk(source, { elapsed: 1000 });

      Type Parameters

      • V

      Parameters

      Returns Reactive<V[]>