swift-server / guides

Guides for building, debugging and deploying Swift Server applications
258 stars 21 forks source link

Swift Concurrency adoption guidelines for Swift Server Libraries #70

Closed fabianfett closed 2 years ago

fabianfett commented 2 years ago

This is a first draft for "Swift Concurrency adoption guidelines for Swift Server Libraries" that was written by @ktoso and me. Looking forward to your input.

ktoso commented 2 years ago

Some follow ups we want to do:

ktoso commented 2 years ago

Thanks David!

ktoso commented 2 years ago

Thanks a lot for the edits @kmahar !

adam-fowler commented 2 years ago
  • [ ] example with async sequence

Soto has an AsyncSequence sample used for paginated results. It is full of generics so might not be the simplest example though. https://github.com/soto-project/soto-core/blob/async-await/Sources/SotoCore/AWSClient%2BPaginate%2Basync.swift

ktoso commented 2 years ago

Going through including feedback last time and will merge, thanks for all the comments!

ktoso commented 2 years ago

Ok i think i applied all changes. Please do feel free to send in PRs and keep this guide growing with more patterns and ideas!

ktoso commented 2 years ago

Meh can't edit this PR branch, so will merge and PR followups