ActionStream<Chunk, Response>.withResult constructor
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);
}