stream method

Stream<RunOutput> stream(
  1. RunInput input, {
  2. CallOptions? options,
})

Streams the output of invoking the Runnable on the given input.

  • input - the input to invoke the Runnable on.
  • options - the options to use when invoking the Runnable.

Implementation

Stream<RunOutput> stream(
  final RunInput input, {
  final CallOptions? options,
}) async* {
  // By default, it just emits the result of calling `.invoke`
  // Subclasses should override this method if they support streaming output
  yield await invoke(input, options: options);
}