Skip to content

rcaos/Swift-Concurrency-Demo

Repository files navigation

This repository contains a variety of examples, each focusing on different aspects of Swift's concurrency features.

These examples are designed to help you understand and utilize Swift's concurrency APIs effectively.

Examples

Some of the examples you'll find include:

  • Use built in apis like URLSession
  • Convert your callbacks (completion handlers) to async-await
  • Convert your delegate base components to async-await
  • Structured concurrency (Async-let)
  • Structured concurrency (Group of tasks)
  • Unstructured Tasks
  • AsyncStream
  • Actors
  • Task cancellation
  • Reliably Testing

Requirements

  1. Xcode 15.0 beta 8 (15A5229m)

Sources:

Meet async/await in Swift

Meet AsyncSequence

Protect mutable state with Swift actors

Explore structured concurrency in Swift

Reliably Testing: https://github.com/pointfreeco/swift-concurrency-extras

About

Swift Concurrency examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages