mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Instead of using the `isolated P` syntax, switch to specifying the
global actor type directly, e.g.,
class MyClass: @MainActor MyProto { ... }
No functionality change at this point
11 lines
158 B
Swift
11 lines
158 B
Swift
public protocol MyProtocol {
|
|
func f()
|
|
}
|
|
|
|
@MainActor
|
|
public class MyClass { }
|
|
|
|
extension MyClass: @MainActor MyProtocol {
|
|
@MainActor public func f() { }
|
|
}
|