func processResult()

in Source/AwsCommonRuntimeKit/crt/Future.swift [114:125]


        func processResult(_ index: Int, _ result: Result<Value, Error>) {
            switch result {
            case .success:
                remainingCount -= 1

                if remainingCount == 0 {
                    future.fulfill(())
                }
            case .failure(let error):
                future.fail(error)
            }
        }