Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add public initializer to WaiterOutcome #577

Merged
merged 1 commit into from
Aug 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
}
Loading