Ukrainabelozierov/SwiftCoroutine
Swift coroutines for iOS, macOS and Linux.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tháng
#1 Repository của tháng
#1 Repository của tháng
🌀 SwiftCoroutine: Coroutine + async/await cho Swift
Framework đưa coroutine, async/await, futures và channels vào Swift trên iOS, macOS và Linux — không cần thay đổi ngôn ngữ, toàn bộ lock-free bằng atomic primitives.
SwiftCoroutine là framework mã nguồn mở (833 sao) cung cấp hỗ trợ coroutine cho Swift trên iOS, macOS và Linux. Nó giải quyết callback hell và pyramid of doom bằng async/await, kết hợp futures và channels để tăng tính linh hoạt.
✨ Điểm nổi bật
- Coroutine: triển khai coroutine đầu tiên cho Swift với hỗ trợ iOS, macOS và Linux.
- Futures & Channels: bổ sung coroutine với futures và channels để linh hoạt hơn.
- Lock-free: sử dụng hoàn toàn atomic primitives, không dùng lock.
- async/await: cho phép viết code bất đồng bộ theo cách tương tự hàm đồng bộ.
- Minimalist API: thiết kế API tối giản với CoroutineScheduler và Coroutine.
- Swift Package Manager & CocoaPods: hỗ trợ cài đặt qua SPM và CocoaPods.
💡 Vì sao đáng chú ý
SwiftCoroutine không cần thay đổi ngôn ngữ Swift — chỉ cần thêm framework. Điểm mạnh: lock-free + atomic primitives, nhanh context switching, code async đồng nhất như đồng bộ. Phù hợp thay thế callback hell, RxSwift, Combine, PromiseKit trong dự án Swift cần async/await.
#Swift #Coroutine #AsyncAwait #OpenSource #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Robust and efficient library for management of asynchronous operations in C#/.Net.
Flutter makes it easy and fast to build beautiful apps for mobile and beyond
A simple zero-config tool to make locally trusted development certificates with any names you'd like.