runSsrRequestStream<S> function

Stream<S> runSsrRequestStream<S>(
  1. Stream<S> body(
    1. BloomQueryScope scope
    ), {
  2. BloomQueryScope? scope,
  3. String? debugLabel,
})

Variant of runSsrRequest for streaming responses.

Keeps the request scope alive until the returned stream closes, errors, or the subscriber cancels (covers streaming, errors, and cancellation).

Implementation

Stream<S> runSsrRequestStream<S>(
  Stream<S> Function(BloomQueryScope scope) body, {
  BloomQueryScope? scope,
  String? debugLabel,
}) =>
    BloomData.withRequestScopeStream<S>(body,
        scope: scope, debugLabel: debugLabel ?? 'ssr-stream');