ActionStream<Chunk, Response>.withResult constructor

ActionStream<Chunk, Response>.withResult(
  1. Stream<Chunk> stream,
  2. Future<Response> result
)

Creates an ActionStream that emits stream and completes onResult with result (or its error).

Implementation

ActionStream.withResult(super.stream, Future<Response> result) {
  result.then(setResult, onError: setError);
}