Skip to content

[FR]: Making Model Objects Sendable #14369

Closed
@Blackjacx

Description

@Blackjacx

Description

Now as we convert our project to Swift Concurrency and Swift 6 we came across the warning Stored property 'snapshot' of 'Sendable'-conforming struct 'FirebaseUpdate' has non-sendable type 'DataSnapshot'; this is an error in the Swift 6 language mode in this object:

import FirebaseDatabase

struct FirebaseUpdate: Sendable {
    var snapshot: DataSnapshot
}

To silence this we could add @preconcurrency but we also loose sight of these warnings then.

Therefore my question: Is ther a specific timeline for when this model object will become Sendable?

I tested with version 11.7.0 today and still get this.

API Proposal

No response

Firebase Product(s)

Database

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions