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

mac/type: change array type from Any to Sendable #15611

Closed
wants to merge 1 commit into from

Conversation

Akemi
Copy link
Member

@Akemi Akemi commented Jan 1, 2025

all values mapped to the array are immutable or value type values, though the Any type implies any type including mutables or reference types. all mpv_node data can be represented as the former.

change Any to Sendable, which implies mutable or values type values.

this is also a preparation for swift 6 and strict concurrency support.

all values mapped to the array are immutable or value type values,
though the Any type implies any type including mutables or reference
types. all mpv_node data can be represented as the former.

change Any to Sendable, which implies mutable or values type values.

this is also a preparation for swift 6 and strict concurrency support.
@Akemi
Copy link
Member Author

Akemi commented Jan 1, 2025

probably should bump the swift support with this. Sendable was initially implemented with swift 5.5, changed in 5.6 and reimplemented in 5.7.

see https://github.com/swiftlang/swift-evolution/blob/main/proposals/0302-concurrent-value-and-concurrent-closures.md#revision-history and older versions:
swiftlang/swift-evolution@2a7bfe4
swiftlang/swift-evolution@c9ab716

Copy link

github-actions bot commented Jan 1, 2025

Download the artifacts for this pull request:

Windows
macOS

@Akemi
Copy link
Member Author

Akemi commented Jan 2, 2025

sry, closing this for now. need to first figure out how to best drop the support for older swift versions.

@Akemi Akemi closed this Jan 2, 2025
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.

1 participant