Skip to content

Commit

Permalink
feat: add public initializer to WaiterOutcome (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
dayaffe authored Aug 11, 2023
1 parent f9934c2 commit ed250b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/ClientRuntime/Waiters/WaiterOutcome.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,12 @@ public struct WaiterOutcome<Output> {

/// The result (output object or error) that caused an `Acceptor` to match.
public let result: Result<Output, Error>

/// Creates an instance of WaiterOutcome
/// - Parameter attempts: The number of operation attempts that were required for the wait to succeed.
/// - Parameter result: The result (output object or error) that caused an `Acceptor` to match.
public init(attempts: Int, result: Result<Output, Error>) {
self.attempts = attempts
self.result = result
}
}

0 comments on commit ed250b8

Please sign in to comment.