Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use async/await and actors instead of Combine #283

Merged
merged 15 commits into from
Jan 17, 2022
Merged

Use async/await and actors instead of Combine #283

merged 15 commits into from
Jan 17, 2022

Conversation

MaxDesiatov
Copy link
Collaborator

@MaxDesiatov MaxDesiatov commented Jan 1, 2022

This makes our codebase smaller by ~80 lines and arguably more readable. Also removes OpenCombine dependency.

@MaxDesiatov MaxDesiatov added the refactor No user-visible functionality change label Jan 1, 2022
@MaxDesiatov MaxDesiatov marked this pull request as draft January 1, 2022 19:23
@MaxDesiatov MaxDesiatov marked this pull request as ready for review January 1, 2022 21:41
@MaxDesiatov MaxDesiatov requested a review from a team January 1, 2022 22:53
yonihemi
yonihemi previously approved these changes Jan 2, 2022
@yonihemi
Copy link
Member

yonihemi commented Jan 2, 2022

We should remember to add the concurrency warnings to CartonKit.

swiftSettings: [
  .unsafeFlags([
    "-Xfrontend", "-warn-concurrency",
    "-Xfrontend", "-enable-actor-data-race-checks",
  ])
]

Probably too early now as SwiftPM, TSC & Vapor types are not yet annotated with Sendable.

@MaxDesiatov
Copy link
Collaborator Author

Not merging this yet, seeing some problems with the watcher not picking up changes...

@yonihemi
Copy link
Member

Not merging this yet, seeing some problems with the watcher not picking up changes...

I've been working with main branch of carton and lately seeing similar issues as well. Not sure if a regression from before but I guess it's not introduced by this PR. I think we can merge and look at the file watcher separately.

@MaxDesiatov MaxDesiatov merged commit 74a49c1 into main Jan 17, 2022
@MaxDesiatov MaxDesiatov deleted the async branch January 17, 2022 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor No user-visible functionality change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants