{"id":28185771,"url":"https://github.com/vsanthanam/anyasyncsequence","last_synced_at":"2025-05-16T06:12:45.723Z","repository":{"id":38084889,"uuid":"494288444","full_name":"vsanthanam/AnyAsyncSequence","owner":"vsanthanam","description":"Type-Erased Existential Generic AsyncSequence Values in Swift","archived":false,"fork":false,"pushed_at":"2023-06-26T12:57:19.000Z","size":232,"stargazers_count":22,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-10T04:01:55.339Z","etag":null,"topics":["async","await","ios","macos","structured-concurrency","swift","tvos","watchos","xcode"],"latest_commit_sha":null,"homepage":"https://anyasyncsequence.tools","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vsanthanam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-20T02:00:15.000Z","updated_at":"2025-03-30T02:09:50.000Z","dependencies_parsed_at":"2022-09-17T19:10:47.592Z","dependency_job_id":null,"html_url":"https://github.com/vsanthanam/AnyAsyncSequence","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsanthanam%2FAnyAsyncSequence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsanthanam%2FAnyAsyncSequence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsanthanam%2FAnyAsyncSequence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsanthanam%2FAnyAsyncSequence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vsanthanam","download_url":"https://codeload.github.com/vsanthanam/AnyAsyncSequence/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254478036,"owners_count":22077679,"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":["async","await","ios","macos","structured-concurrency","swift","tvos","watchos","xcode"],"created_at":"2025-05-16T06:12:37.553Z","updated_at":"2025-05-16T06:12:45.713Z","avatar_url":"https://github.com/vsanthanam.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AnyAsyncSequence\n\n[![MIT License](https://img.shields.io/github/license/vsanthanam/AnyAsyncSequence)](https://github.com/vsanthanam/AnyAsyncSequence/blob/main/LICENSE)\n[![Package Releases](https://img.shields.io/github/v/release/vsanthanam/AnyAsyncSequence)](https://github.com/vsanthanam/AnyAsyncSequence/releases)\n[![Build Results](https://img.shields.io/github/workflow/status/vsanthanam/AnyAsyncSequence/spm-build-test)](https://img.shields.io/github/workflow/status/vsanthanam/AnyAsyncSequence/spm-build-test)\n[![Swift Version](https://img.shields.io/badge/swift-5.6-critical)](https://swift.org)\n[![Supported Platforms](https://img.shields.io/badge/platform-iOS%2013%20%7C%20macOS%2010.15%20%7C%20tvOS%2013%20%7C%20watchOS%206-lightgrey)](https://developer.apple.com)\n\nAnyAsyncSequence allows you to expose `AsyncSequence` interfaces in your APIs without exposing the underlying sequence type, while continuing to expose the sequence's `Element` type to consumers, so they can asynchronously iterate over the sequence.\n\nI assume that when Swift adds type constraints to opaque types ([as has been hinted](https://forums.swift.org/t/anyasyncsequence/50828/2)), this package may become unnecessary.\n\n## Installation\n\nAnyAsyncSequence currently distributed exclusively through the [Swift Package Manager](https://www.swift.org/package-manager/). \n\nTo add AnyAsyncSequence as a dependency to an existing Swift package, add the following line of code to the `dependencies` parameter of your `Package.swift` file:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/vsanthanam/AnyAsyncSequence.git\", .upToNextMajor(from: \"1.0.0\"))\n]\n```\n\nTo add AnyAsyncSequence as a dependency to an Xcode Project: \n\n- Choose `File` → `Add Packages...`\n- Enter package URL `https://github.com/vsanthanam/AnyAsyncSequence.git` and select your release and of choice.\n\nOther distribution mechanisms like CocoaPods or Carthage may be added in the future.\n\nAdditional installation instructions are available on the [Swift Package Index](https://swiftpackageindex.com/vsanthanam/AnyAsyncSequence)\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fvsanthanam%2FAnyAsyncSequence%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/vsanthanam/AnyAsyncSequence)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fvsanthanam%2FAnyAsyncSequence%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/vsanthanam/AnyAsyncSequence)\n\n## Usage\n\n```swift\nimport AnyAsyncSequence\n\nvar mySequence: AnyAsyncSequence\u003cElement\u003e {\n    myTypedSequence.eraseToAnyAsyncSequence()\n}\n```\n\nExplore [the documentation](https://anyasyncsequence.tools/docs/documentation/anyasyncsequence) for more details.\n\n## License\n\n**AnyAsyncSequence** is available under the MIT license. See the LICENSE file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsanthanam%2Fanyasyncsequence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvsanthanam%2Fanyasyncsequence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsanthanam%2Fanyasyncsequence/lists"}