mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
294 B
Swift
16 lines
294 B
Swift
|
|
// dynamically_replaceable
|
|
@MainActor
|
|
public dynamic func dynamicOnMainActor() { }
|
|
|
|
// property wrapper + main actor
|
|
@propertyWrapper
|
|
public struct IntWrapper: Sendable {
|
|
|
|
public init(wrappedValue: Int) {
|
|
self.wrappedValue = wrappedValue
|
|
}
|
|
|
|
@MainActor public var wrappedValue: Int
|
|
}
|