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

Fix some more Swift concurrency issues #2294

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

bendk
Copy link
Contributor

@bendk bendk commented Oct 31, 2024

Converted some more vars to lets. Swift still complains about async calls. I believe the next step would be to make all UniFFI objects conform to Sendable.

See #2279.

@bendk bendk requested a review from a team as a code owner October 31, 2024 20:44
@bendk bendk requested review from badboy and removed request for a team October 31, 2024 20:44
@bendk bendk force-pushed the push-wsnlxtoqmvxy branch from a3032a3 to fa74fae Compare November 1, 2024 13:44
Converted some more vars to lets.  Swift still complains about async
calls.  I believe the next step would be to make all UniFFI objects
conform to `Sendable`.

Split the `FfiType::Reference` variant into `Reference` and
`MutReference`.  This allows us to define some more variables using
`let` in swift.

See mozilla#2279.
@bendk
Copy link
Contributor Author

bendk commented Nov 14, 2024

These seem safe enough to me, I'm going to go ahead and merge them.

@bendk bendk merged commit de6eef9 into mozilla:main Nov 14, 2024
5 checks passed
@bendk bendk deleted the push-wsnlxtoqmvxy branch November 14, 2024 22:40
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