streamFetch method

Future<StreamFetchResponse> streamFetch(
  1. int streamId, {
  2. int? bufferSize,
})
inherited

Fetches the next chunk from an active stream in the worker. Public counterpart of _streamFetch, used by callers that drive the stream lifecycle themselves (e.g. streamQueryMulti). New in v3.3.0.

Pass bufferSize equal to the stream chunkSize so the first FFI allocation matches the transfer budget.

Implementation

Future<StreamFetchResponse> streamFetch(
  int streamId, {
  int? bufferSize,
}) =>
    _streamFetch(streamId, bufferSize: bufferSize);