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.
1 parent b9bbe62 commit 5f2d5deCopy full SHA for 5f2d5de
stdlib/public/Concurrency/AsyncStream.swift
@@ -321,7 +321,7 @@ public struct AsyncStream<Element> {
321
/// let stream = AsyncStream<Int> {
322
/// await Task.sleep(1 * 1_000_000_000)
323
/// return Int.random(in: 1...10)
324
- /// } onCancel: { @Sendable () in print("Cancelled.") }
+ /// } onCancel: { @Sendable () in print("Canceled.") }
325
///
326
/// // Call point:
327
/// for await random in stream {
0 commit comments