@@ -28,7 +28,7 @@ import SystemPackage
2828/// - input: The input to send to the executable.
2929/// - output: The method to use for redirecting the standard output.
3030/// - error: The method to use for redirecting the standard error.
31- /// - Returns: a `CollectedResult ` containing the result of the run.
31+ /// - Returns: a `ExecutionRecord ` containing the result of the run.
3232public func run<
3333 Input: InputProtocol ,
3434 Output: OutputProtocol ,
@@ -42,7 +42,7 @@ public func run<
4242 input: Input = . none,
4343 output: Output ,
4444 error: Error = . discarded
45- ) async throws -> CollectedResult < Output , Error > {
45+ ) async throws -> ExecutionRecord < Output , Error > {
4646 let configuration = Configuration (
4747 executable: executable,
4848 arguments: arguments,
@@ -70,7 +70,7 @@ public func run<
7070/// - input: span to write to subprocess' standard input.
7171/// - output: The method to use for redirecting the standard output.
7272/// - error: The method to use for redirecting the standard error.
73- /// - Returns: a CollectedResult containing the result of the run.
73+ /// - Returns: a ExecutionRecord containing the result of the run.
7474public func run<
7575 InputElement: BitwiseCopyable ,
7676 Output: OutputProtocol ,
@@ -84,7 +84,7 @@ public func run<
8484 input: borrowing Span < InputElement > ,
8585 output: Output ,
8686 error: Error = . discarded
87- ) async throws -> CollectedResult < Output , Error > {
87+ ) async throws -> ExecutionRecord < Output , Error > {
8888 let configuration = Configuration (
8989 executable: executable,
9090 arguments: arguments,
@@ -133,7 +133,7 @@ public func run<
133133 error: Error = . discarded,
134134 isolation: isolated ( any Actor ) ? = #isolation,
135135 body: ( ( Execution ) async throws -> Result )
136- ) async throws -> ExecutionResult < Result > where Error. OutputType == Void {
136+ ) async throws -> ExecutionOutcome < Result > where Error. OutputType == Void {
137137 let configuration = Configuration (
138138 executable: executable,
139139 arguments: arguments,
@@ -180,7 +180,7 @@ public func run<Result, Input: InputProtocol, Error: ErrorOutputProtocol>(
180180 preferredBufferSize: Int ? = nil ,
181181 isolation: isolated ( any Actor ) ? = #isolation,
182182 body: ( ( Execution , AsyncBufferSequence ) async throws -> Result )
183- ) async throws -> ExecutionResult < Result > where Error. OutputType == Void {
183+ ) async throws -> ExecutionOutcome < Result > where Error. OutputType == Void {
184184 let configuration = Configuration (
185185 executable: executable,
186186 arguments: arguments,
@@ -227,7 +227,7 @@ public func run<Result, Input: InputProtocol, Output: OutputProtocol>(
227227 preferredBufferSize: Int ? = nil ,
228228 isolation: isolated ( any Actor ) ? = #isolation,
229229 body: ( ( Execution , AsyncBufferSequence ) async throws -> Result )
230- ) async throws -> ExecutionResult < Result > where Output. OutputType == Void {
230+ ) async throws -> ExecutionOutcome < Result > where Output. OutputType == Void {
231231 let configuration = Configuration (
232232 executable: executable,
233233 arguments: arguments,
@@ -272,7 +272,7 @@ public func run<Result, Error: ErrorOutputProtocol>(
272272 preferredBufferSize: Int ? = nil ,
273273 isolation: isolated ( any Actor ) ? = #isolation,
274274 body: ( ( Execution , StandardInputWriter , AsyncBufferSequence ) async throws -> Result )
275- ) async throws -> ExecutionResult < Result > where Error. OutputType == Void {
275+ ) async throws -> ExecutionOutcome < Result > where Error. OutputType == Void {
276276 let configuration = Configuration (
277277 executable: executable,
278278 arguments: arguments,
@@ -316,7 +316,7 @@ public func run<Result, Output: OutputProtocol>(
316316 preferredBufferSize: Int ? = nil ,
317317 isolation: isolated ( any Actor ) ? = #isolation,
318318 body: ( ( Execution , StandardInputWriter , AsyncBufferSequence ) async throws -> Result )
319- ) async throws -> ExecutionResult < Result > where Output. OutputType == Void {
319+ ) async throws -> ExecutionOutcome < Result > where Output. OutputType == Void {
320320 let configuration = Configuration (
321321 executable: executable,
322322 arguments: arguments,
@@ -366,7 +366,7 @@ public func run<Result>(
366366 AsyncBufferSequence
367367 ) async throws -> Result
368368 )
369- ) async throws -> ExecutionResult < Result > {
369+ ) async throws -> ExecutionOutcome < Result > {
370370 let configuration = Configuration (
371371 executable: executable,
372372 arguments: arguments,
@@ -386,13 +386,13 @@ public func run<Result>(
386386
387387#if SubprocessSpan
388388/// Run an executable with given configuration asynchronously and returns
389- /// a `CollectedResult ` containing the output of the child process.
389+ /// a `ExecutionRecord ` containing the output of the child process.
390390/// - Parameters:
391391/// - configuration: The configuration to run.
392392/// - input: span to write to subprocess' standard input.
393393/// - output: The method to use for redirecting the standard output.
394394/// - error: The method to use for redirecting the standard error.
395- /// - Returns a CollectedResult containing the result of the run.
395+ /// - Returns a ExecutionRecord containing the result of the run.
396396public func run<
397397 InputElement: BitwiseCopyable ,
398398 Output: OutputProtocol ,
@@ -402,7 +402,7 @@ public func run<
402402 input: borrowing Span < InputElement > ,
403403 output: Output ,
404404 error: Error = . discarded
405- ) async throws -> CollectedResult < Output , Error > {
405+ ) async throws -> ExecutionRecord < Output , Error > {
406406 typealias RunResult = (
407407 processIdentifier: ProcessIdentifier ,
408408 standardOutput: Output . OutputType ,
@@ -437,7 +437,7 @@ public func run<
437437 )
438438 }
439439
440- return CollectedResult (
440+ return ExecutionRecord (
441441 processIdentifier: result. value. processIdentifier,
442442 terminationStatus: result. terminationStatus,
443443 standardOutput: result. value. standardOutput,
@@ -447,13 +447,13 @@ public func run<
447447#endif
448448
449449/// Run a `Configuration` asynchronously and returns
450- /// a `CollectedResult ` containing the output of the child process.
450+ /// a `ExecutionRecord ` containing the output of the child process.
451451/// - Parameters:
452452/// - configuration: The `Subprocess` configuration to run.
453453/// - input: The input to send to the executable.
454454/// - output: The method to use for redirecting the standard output.
455455/// - error: The method to use for redirecting the standard error.
456- /// - Returns: a `CollectedResult ` containing the result of the run.
456+ /// - Returns: a `ExecutionRecord ` containing the result of the run.
457457public func run<
458458 Input: InputProtocol,
459459 Output: OutputProtocol,
@@ -463,7 +463,7 @@ public func run<
463463 input: Input = . none,
464464 output: Output,
465465 error: Error = . discarded
466- ) async throws -> CollectedResult < Output, Error> {
466+ ) async throws -> ExecutionRecord < Output, Error> {
467467 typealias RunResult = (
468468 processIdentifier: ProcessIdentifier ,
469469 standardOutput: Output . OutputType ,
@@ -541,7 +541,7 @@ public func run<
541541 }
542542 }
543543
544- return CollectedResult (
544+ return ExecutionRecord (
545545 processIdentifier: result. value. processIdentifier,
546546 terminationStatus: result. terminationStatus,
547547 standardOutput: result. value. standardOutput,
@@ -572,7 +572,7 @@ public func run<
572572 error: Error = . discarded,
573573 isolation: isolated ( any Actor ) ? = #isolation,
574574 body: ( ( Execution ) async throws -> Result )
575- ) async throws -> ExecutionResult < Result > where Error. OutputType == Void {
575+ ) async throws -> ExecutionOutcome < Result > where Error. OutputType == Void {
576576 let inputPipe = try input. createPipe ( )
577577 let outputPipe = try output. createPipe ( )
578578 let errorPipe = try error. createPipe ( from: outputPipe)
@@ -630,7 +630,7 @@ public func run<
630630 preferredBufferSize: Int ? = nil ,
631631 isolation: isolated ( any Actor ) ? = #isolation,
632632 body: ( ( Execution , AsyncBufferSequence ) async throws -> Result )
633- ) async throws -> ExecutionResult < Result > where Error. OutputType == Void {
633+ ) async throws -> ExecutionOutcome < Result > where Error. OutputType == Void {
634634 let output = SequenceOutput ( )
635635 let inputPipe = try input. createPipe ( )
636636 let outputPipe = try output. createPipe ( )
@@ -692,7 +692,7 @@ public func run<Result, Input: InputProtocol, Output: OutputProtocol>(
692692 preferredBufferSize: Int ? = nil ,
693693 isolation: isolated ( any Actor ) ? = #isolation,
694694 body: ( ( Execution , AsyncBufferSequence ) async throws -> Result )
695- ) async throws -> ExecutionResult < Result > where Output. OutputType == Void {
695+ ) async throws -> ExecutionOutcome < Result > where Output. OutputType == Void {
696696 let error = SequenceOutput ( )
697697
698698 return try await configuration. run (
@@ -750,7 +750,7 @@ public func run<Result, Error: ErrorOutputProtocol>(
750750 preferredBufferSize: Int ? = nil ,
751751 isolation: isolated ( any Actor ) ? = #isolation,
752752 body: ( ( Execution , StandardInputWriter , AsyncBufferSequence ) async throws -> Result )
753- ) async throws -> ExecutionResult < Result > where Error. OutputType == Void {
753+ ) async throws -> ExecutionOutcome < Result > where Error. OutputType == Void {
754754 let input = CustomWriteInput ( )
755755 let output = SequenceOutput ( )
756756 let inputPipe = try input. createPipe ( )
@@ -793,7 +793,7 @@ public func run<Result, Output: OutputProtocol>(
793793 preferredBufferSize: Int ? = nil ,
794794 isolation: isolated ( any Actor ) ? = #isolation,
795795 body: ( ( Execution , StandardInputWriter , AsyncBufferSequence ) async throws -> Result )
796- ) async throws -> ExecutionResult < Result > where Output. OutputType == Void {
796+ ) async throws -> ExecutionOutcome < Result > where Output. OutputType == Void {
797797 let input = CustomWriteInput ( )
798798 let error = SequenceOutput ( )
799799
@@ -838,7 +838,7 @@ public func run<Result>(
838838 AsyncBufferSequence
839839 ) async throws -> Result
840840 )
841- ) async throws -> ExecutionResult < Result > {
841+ ) async throws -> ExecutionOutcome < Result > {
842842 let input = CustomWriteInput ( )
843843 let output = SequenceOutput ( )
844844 let error = SequenceOutput ( )
0 commit comments