swift
089b78fe
- Add @preconcurrency to toplevel vars
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Commit
View On
GitHub
Hide Minimap (CTRL+M)
Commit
3 years ago
Add @preconcurrency to toplevel vars Top-level global variables should have the `@predatesConcurrency @MainActor` behaviour. This allows them to be somewhat concurrency safe while still working with old code.
References
#40998 - Make top-level code variables `@MainActor @preconcurrency`
Author
etcwilde
Committer
etcwilde
Parents
2c3bef82
Files
2
lib
AST
Decl.cpp
Sema
TypeCheckConcurrency.cpp
Loading