isolateComputeStream method

Stream<R> isolateComputeStream(
  1. IsolateStream<Q, R> callback,
  2. Q message, {
  3. String? debugLabel,
})

A computation function that returns a Stream of responses from the long lived isolate.

Very similar to the isolateCompute function, but instead of returning a Future, a Stream is returned to allow for a response in multiple parts. Every stream event will be sent individually through from the isolate.

Implementation

Stream<R> isolateComputeStream(
  IsolateStream<Q, R> callback,
  Q message, {
  String? debugLabel,
}) {
  return _isolate!.computeStream(callback, message, debugLabel: debugLabel);
}