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

Add Concurrency #17

Merged
merged 6 commits into from
May 13, 2024
Merged

Conversation

pereBohigas
Copy link
Contributor

@pereBohigas pereBohigas commented Apr 11, 2024

Hi!

Here the Concurrency framework is being added to the project. Now, in case of having multiple string catalogs, they will be checked in parallel.

The changes have been tested using the compete concurrency check provided with the Swift Tools version 5.10 (.enableExperimentalFeature("StrictConcurrency")), to avoid including data-race safety issues and to assure the code is Swift 6 compatible.

Cheers!!

@pereBohigas pereBohigas force-pushed the feature/add_concurrency branch from f416d88 to ea0c4dd Compare April 23, 2024 21:48
@pereBohigas pereBohigas mentioned this pull request May 11, 2024
@pereBohigas pereBohigas changed the base branch from main to v1 May 11, 2024 21:38
@pereBohigas pereBohigas force-pushed the feature/add_concurrency branch from ea0c4dd to 4696bb2 Compare May 12, 2024 21:55
Copy link
Member

@roddymunro roddymunro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just one question!

Sources/SwiftPolyglot/AsyncParsableCommand.swift Outdated Show resolved Hide resolved
@pereBohigas pereBohigas force-pushed the feature/add_concurrency branch from 4696bb2 to d6edcdc Compare May 13, 2024 19:28
@pereBohigas
Copy link
Contributor Author

LGTM - just one question!

Nice catch!! Fixed!!

@pereBohigas pereBohigas requested a review from roddymunro May 13, 2024 19:48
@pereBohigas pereBohigas force-pushed the feature/add_concurrency branch from d6edcdc to 463e5ae Compare May 13, 2024 19:53
@pereBohigas
Copy link
Contributor Author

pereBohigas commented May 13, 2024

I also fixed the message shown with every missing translation (aka MissingTranslation structure's message property)

@roddymunro roddymunro merged commit afeff86 into appdecostudio:v1 May 13, 2024
1 of 2 checks passed
roddymunro added a commit that referenced this pull request Jun 12, 2024
* Add ArgumentParser (#16)

* Add ArgumentParser dependency

* Rename SwiftPolyglotCore struct

* Add RuntimeError

* Rename SwiftPolyglot struct, add ParsableCommand adoption and add RuntimeError usage

* Parse arguments and flag using ArgumentParser and adjust SwiftPolyglotCore initializer's parameters

* Update README

* Rename property

* Format

* Fix command name in help's message

* Add Concurrency (#17)

* Set minimum macOS version to version 10.15 (Catalina)

* Add MissingTranslation struct

* Add concurrency to core functionality

* Adopt AsyncParsableCommand protocol to provide an asynchronous entry point

* Add XCTest extension for testing async throwing expressions

* Add concurrency to tests

* Fix SwiftFormat issues (#19)

* Remove trailing commas

* Fix indentation

* Move inline try to start of expression

* Remove trailing white spaces

* Use opaque generic parameters instead of generic parameters with constraints

* Replace consecutive blank lines with a single blank line

* Disable hoistAwait (#20)

* Fix swiftformat (#21)

* Improve assertions on async throwing expressions (#22)

* Add Equatable adoption for custom error

* Improve custom method for asserting on asynchronous expressions which should run successfully without throwing an error

* Improve custom method for asserting on asynchronous expressions which should throw an error

* Reenable hoistAwait SwiftFormat rule

---------

Co-authored-by: Pere Bohigas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants