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

Generated types are not Sendable #13962

Open
SergioB-dev opened this issue Oct 20, 2024 · 2 comments
Open

Generated types are not Sendable #13962

SergioB-dev opened this issue Oct 20, 2024 · 2 comments
Assignees

Comments

@SergioB-dev
Copy link

SergioB-dev commented Oct 20, 2024

Expected

To be able to run the generated SDK as is (even in my Swift 6 project that has the strictest concurrency checks enabled)

Actual

Newly generated types produce this error:

Non-sendable type 'OperationResult<Last10storyPrimersByCategoryQuery.Data>' returned by implicitly asynchronous
 call to nonisolated function cannot cross actor boundary

Question
Are there any plans concerning this? My workaround has just been annotating generated types with MainActor to get a prototype up and running. I'd be happy to take this on.

@paulb777 paulb777 assigned paulb777 and aashishpatil-g and unassigned paulb777 Oct 22, 2024
@paulb777 paulb777 transferred this issue from firebase/data-connect-ios-sdk Oct 23, 2024
@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@aashishpatil-g
Copy link
Contributor

aashishpatil-g commented Oct 23, 2024

We are investigating a fix. In the meantime, you could use the @preconcurrency annotation before the Data Connect import

@preconcurrency import FirebaseDataConnect
@preconcurrency import MyGeneratedConnector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants