RepositorySwiftUAUkraina
BE

belozierov/SwiftCoroutine

Swift coroutines for iOS, macOS and Linux.

832sao
48fork
6issue
5lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: coroutine

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: await

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: combine

#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.

RepositoryPHP
amphp/amp

A non-blocking concurrency framework for PHP applications. 🐘

4.4k
Nov 20, 2026
RepositorySwift
permissionlesstech/bitchat

bluetooth mesh chat, IRC vibes

37.2k
Nov 27, 2026
RepositorySwift
malcommac/Hydra

⚡️ Lightweight full-featured Promises, Async & Await Library in Swift

2.0k
Oct 10, 2021
RepositoryC#
timcassell/ProtoPromise

Robust and efficient library for management of asynchronous operations in C#/.Net.

262
Nov 24, 2026
RepositoryDart
flutter/flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond

181.5k
Nov 28, 2026
RepositoryGo
FiloSottile/mkcert

A simple zero-config tool to make locally trusted development certificates with any names you'd like.

59.9k
Aug 13, 2024
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026
RepositorySwift
iina/iina

The modern video player for macOS.

47.4k
Dec 1, 2026
RepositorySwift
utmapp/UTM

Virtual machines for iOS and macOS

37.1k
Nov 18, 2026