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

Concurrency warnings when using swift-markdown with Swift 5.10 strict concurrency enabled #170

Open
dempseyatgithub opened this issue Mar 6, 2024 · 0 comments

Comments

@dempseyatgithub
Copy link

Using swift-markdown as a dependency causes concurrency warnings when strict concurrency is enabled in Swift 5.10.

The warnings are primarily because of option set types not being marked as Sendable.

A typical warning:

Static property 'disableSmartOpts' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6

Adding Sendable to ParseOptions, Aside.Kind, and MarkupDumpOptions addresses the warnings when these types are used in client projects.

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

No branches or pull requests

1 participant