mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Concurrency] SwiftStdlib 5.5 ⟹ SwiftStdlib 5.1 (usages)
The concurrency runtime now deploys back to macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, which corresponds to the 5.1 release of the stdlib. Adjust macro usages accordingly.
This commit is contained in:
@@ -187,12 +187,12 @@ func callActorMethodFromGeneric(a: SomeActor) async {
|
||||
await a.someMethod()
|
||||
}
|
||||
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
@available(SwiftStdlib 5.1, *)
|
||||
func makeActorInTask() async {
|
||||
Task.detached { await SomeActor() }
|
||||
}
|
||||
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
@available(SwiftStdlib 5.1, *)
|
||||
func callActorMethodInTask(a: SomeActor) async {
|
||||
Task.detached { await a.someMethod() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user