{"id":19206702,"url":"https://github.com/horothesun/asynctaskswitcher","last_synced_at":"2026-04-18T04:02:13.226Z","repository":{"id":111717751,"uuid":"262135260","full_name":"horothesun/AsyncTaskSwitcher","owner":"horothesun","description":"Swift asynchronous task switcher: it calls the completion handler of the most-recently-completed asynchronous task.","archived":false,"fork":false,"pushed_at":"2020-12-20T00:53:00.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-20T09:03:56.448Z","etag":null,"topics":["async-tasks","asynchronous-tasks","github-actions","swift","swift-package","swift-package-manager","swiftpm","task-switching","thread-safe","thread-safety","threadsafe"],"latest_commit_sha":null,"homepage":"","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/horothesun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-05-07T19:02:20.000Z","updated_at":"2020-12-20T00:53:02.000Z","dependencies_parsed_at":"2023-03-13T05:00:29.249Z","dependency_job_id":null,"html_url":"https://github.com/horothesun/AsyncTaskSwitcher","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/horothesun/AsyncTaskSwitcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horothesun%2FAsyncTaskSwitcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horothesun%2FAsyncTaskSwitcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horothesun%2FAsyncTaskSwitcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horothesun%2FAsyncTaskSwitcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/horothesun","download_url":"https://codeload.github.com/horothesun/AsyncTaskSwitcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horothesun%2FAsyncTaskSwitcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-tasks","asynchronous-tasks","github-actions","swift","swift-package","swift-package-manager","swiftpm","task-switching","thread-safe","thread-safety","threadsafe"],"created_at":"2024-11-09T13:16:40.192Z","updated_at":"2026-04-18T04:02:13.206Z","avatar_url":"https://github.com/horothesun.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AsyncTaskSwitcher\n\n[![CI Linux](https://github.com/horothesun/AsyncTaskSwitcher/workflows/CI%20Linux/badge.svg)](https://github.com/horothesun/AsyncTaskSwitcher/blob/master/.github/workflows/ci-linux.yml)\n[![CI macOS](https://github.com/horothesun/AsyncTaskSwitcher/workflows/CI%20macOS/badge.svg)](https://github.com/horothesun/AsyncTaskSwitcher/blob/master/.github/workflows/ci-macos.yml)\n[![codecov](https://codecov.io/gh/horothesun/AsyncTaskSwitcher/branch/master/graph/badge.svg?token=6XPPUZBF4W)](https://codecov.io/gh/horothesun/AsyncTaskSwitcher)\n[![SwiftPM](https://img.shields.io/badge/SwiftPM-Compatible-brightgreen.svg)](https://swift.org/package-manager/)\n\nSwift asynchronous task switcher: it calls the completion handler of the most-recently-completed asynchronous task.\n\n## Generate Xcode project\n\n```bash\nswift package generate-xcodeproj\n```\n\n## Testing\n\n### macOS\n\n```bash\nswift test\n```\n\n### Docker Linux\n\nIMPORTANT: regenerate Linux test list executing\n\n```bash\nswift test --generate-linuxmain\n```\n\nExecute on base `swift:5.2` image\n\n```bash\ndocker run --rm \\\n    --volume \"$(pwd):/package\" \\\n    --workdir '/package' \\\n    swift:5.2 \\\n    /bin/bash -c 'swift test'\n```\n\nor create a new image based on `Dockerfile` and run it\n\n```bash\ndocker build --tag async-task-switcher .\ndocker run --rm async-task-switcher\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorothesun%2Fasynctaskswitcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhorothesun%2Fasynctaskswitcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorothesun%2Fasynctaskswitcher/lists"}