Skip to content

Commit 30b9fc9

Browse files
Concurrency: fix inconsistent _asyncLet_get signatures
1 parent ab1a989 commit 30b9fc9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

stdlib/public/Concurrency/AsyncLet.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ public func _asyncLetEnd(
4444
/// Wait if necessary and then project the result value of an async let
4545
@available(SwiftStdlib 5.1, *)
4646
@_silgen_name("swift_asyncLet_get")
47-
public func _asyncLet_get(_ asyncLet: Builtin.RawPointer, _ resultBuffer: Builtin.RawPointer) async -> Builtin.RawPointer
47+
public func _asyncLet_get(_ asyncLet: Builtin.RawPointer, _ resultBuffer: Builtin.RawPointer) async
4848

4949
/// Wait if necessary and then project the result value of an async let that throws
5050
@available(SwiftStdlib 5.1, *)
5151
@_silgen_name("swift_asyncLet_get_throwing")
52-
public func _asyncLet_get_throwing(_ asyncLet: Builtin.RawPointer, _ resultBuffer: Builtin.RawPointer) async throws -> Builtin.RawPointer
52+
public func _asyncLet_get_throwing(_ asyncLet: Builtin.RawPointer, _ resultBuffer: Builtin.RawPointer) async throws
5353

5454
/// Wait if necessary and then tear down the async let task
5555
@available(SwiftStdlib 5.1, *)

test/api-digester/stability-concurrency-abi.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ Func AsyncSequence.prefix(while:) is now with @preconcurrency
5959
Func MainActor.run(resultType:body:) has generic signature change from <T where T : Swift.Sendable> to <T>
6060
Func MainActor.run(resultType:body:) has mangled name changing from 'static Swift.MainActor.run<A where A: Swift.Sendable>(resultType: A.Type, body: @Swift.MainActor @Sendable () throws -> A) async throws -> A' to 'static Swift.MainActor.run<A>(resultType: A.Type, body: @Swift.MainActor @Sendable () throws -> A) async throws -> A'
6161
Func _runAsyncMain(_:) is now with @preconcurrency
62+
Func _asyncLet_get(_:_:) has mangled name changing from '_Concurrency._asyncLet_get(Builtin.RawPointer, Builtin.RawPointer) async -> Builtin.RawPointer' to '_Concurrency._asyncLet_get(Builtin.RawPointer, Builtin.RawPointer) async -> ()'
63+
Func _asyncLet_get(_:_:) has return type change from Builtin.RawPointer to ()
64+
Func _asyncLet_get_throwing(_:_:) has mangled name changing from '_Concurrency._asyncLet_get_throwing(Builtin.RawPointer, Builtin.RawPointer) async throws -> Builtin.RawPointer' to '_Concurrency._asyncLet_get_throwing(Builtin.RawPointer, Builtin.RawPointer) async throws -> ()'
65+
Func _asyncLet_get_throwing(_:_:) has return type change from Builtin.RawPointer to ()
6266
Protocol Actor has added inherited protocol AnyActor
6367
Protocol Actor has generic signature change from <Self : AnyObject, Self : Swift.Sendable> to <Self : _Concurrency.AnyActor>
6468
Struct CheckedContinuation has removed conformance to UnsafeSendable

0 commit comments

Comments
 (0)