{"id":13338720,"url":"https://github.com/rugheid/swift-amalgamate","last_synced_at":"2025-03-11T10:31:48.205Z","repository":{"id":85964362,"uuid":"202881826","full_name":"rugheid/swift-amalgamate","owner":"rugheid","description":"The Amalgamate package extends the Combine framework with handy utilities.","archived":false,"fork":false,"pushed_at":"2019-08-17T13:15:45.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-23T22:18:35.041Z","etag":null,"topics":["combine-framework","ios13","macos","swift","swift-package-manager","tvos","watchos"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rugheid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-17T13:03:26.000Z","updated_at":"2019-08-17T13:15:47.000Z","dependencies_parsed_at":"2023-03-13T07:43:15.041Z","dependency_job_id":null,"html_url":"https://github.com/rugheid/swift-amalgamate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rugheid%2Fswift-amalgamate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rugheid%2Fswift-amalgamate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rugheid%2Fswift-amalgamate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rugheid%2Fswift-amalgamate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rugheid","download_url":"https://codeload.github.com/rugheid/swift-amalgamate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243015440,"owners_count":20222082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["combine-framework","ios13","macos","swift","swift-package-manager","tvos","watchos"],"created_at":"2024-07-29T19:17:08.789Z","updated_at":"2025-03-11T10:31:48.187Z","avatar_url":"https://github.com/rugheid.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amalgamate\n\n_Amalgamate: combine or unite to form one organization or structure._\n\nThe Amalgamate package extends the Combine framework with handy utilities.\n\n## Installation\n\nAmalgamate is only available as a Swift Package.\nIf you're using Xcode 11, you can add it using `File \u003e Swift Packages \u003e Add Package Dependency...`\n\n## Usage\n\nImport the Amalgamate package: `import Amalgamate`.\n\n### Retry\n\nThe Retry publisher retries an upstream publisher when a given condition is met. You can pass a publisher to run before retrying.\n\n```swift\nupstreamPublisher.retry { value in\n    return indicatesFailure(value)\n}\n```\nRestarts the upstream publisher if the value it sent indicates failure. Failures will just be propagated downstream.\n\n```swift\napiCallPublisher.retry(butFirst: authenticatePublisher) { response in\n    return response.statusCode == 401\n}\n```\nRestarts the API call publisher if the response indicates being unauthorized, but will first authenticate using the authenticate publisher.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frugheid%2Fswift-amalgamate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frugheid%2Fswift-amalgamate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frugheid%2Fswift-amalgamate/lists"}