We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AsyncStream.init(unfolding:onCancel:)
1 parent 38cc951 commit 2c20902Copy full SHA for 2c20902
stdlib/public/Concurrency/AsyncStream.swift
@@ -330,7 +330,8 @@ public struct AsyncStream<Element> {
330
/// }
331
///
332
333
- @preconcurrency
+ @_silgen_name("$sScS9unfolding8onCancelScSyxGxSgyYac_yyYbcSgtcfC")
334
+ @preconcurrency // Original API had `@Sendable` only on `onCancel`
335
public init(
336
unfolding produce: @escaping @Sendable () async -> Element?,
337
onCancel: (@Sendable () -> Void)? = nil
0 commit comments