Skip to content

Commit 2c20902

Browse files
committed
[Concurrency] Preserve the mangling of AsyncStream.init(unfolding:onCancel:).
1 parent 38cc951 commit 2c20902

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/Concurrency/AsyncStream.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ public struct AsyncStream<Element> {
330330
/// }
331331
///
332332
///
333-
@preconcurrency
333+
@_silgen_name("$sScS9unfolding8onCancelScSyxGxSgyYac_yyYbcSgtcfC")
334+
@preconcurrency // Original API had `@Sendable` only on `onCancel`
334335
public init(
335336
unfolding produce: @escaping @Sendable () async -> Element?,
336337
onCancel: (@Sendable () -> Void)? = nil

0 commit comments

Comments
 (0)