amplify-swift
                                
                                 amplify-swift copied to clipboard
                                
                                    amplify-swift copied to clipboard
                            
                            
                            
                        Implements async API AmplifyInProcessReportingOperation for use with Storage and any InProcessReporting operation
Issue #, if available:
#2056
Description of changes:
The code below will not work with any instance of AmplifyInProcessReportingOperation which will report using the generic types for InProcess, Success and Failure.
for try await element in operation.sequence {
    switch element {
    case .inProcess(let progress):
        print("Progress: \(progress)")
    case .success(let success):
        print("Success: \(success)")
    case .failure(let error):
        print("Error: \(error)")
    }
}
Check points: (check or cross out if not relevant)
- [ ] Added new tests to cover change, if needed
- [ ] Build succeeds with all target using Swift Package Manager
- [ ] All unit tests pass
- [ ] All integration tests pass
- [ ] Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)
- [ ] Documentation update for the change if required
- [ ] PR title conforms to conventional commit style
- [ ] If breaking change, documentation/changelog update with migration instructions
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.