Skip to content

Commit d7239ba

Browse files
twittembFranzBusch
andauthored
Update Sources/AsyncAlgorithms/Channels/AsyncChannel.swift
Co-authored-by: Franz Busch <privat@franz-busch.de>
1 parent de3eb0f commit d7239ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: Sources/AsyncAlgorithms/Channels/AsyncChannel.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ public final class AsyncChannel<Element>: AsyncSequence, @unchecked Sendable {
3030
}
3131

3232
/// Sends an element to an awaiting iteration. This function will resume when the next call to `next()` is made
33-
/// or when a call to `finish()` is made from another Task.
34-
/// If the channel is already finished then this returns immediately
35-
/// If the task is cancelled, this function will resume. Other sending operations from other tasks will remain active.
33+
/// or when a call to `finish()` is made from another task.
34+
/// If the channel is already finished then this returns immediately.
35+
/// If the task is cancelled, this function will resume without sending the element. Other sending operations from other tasks will remain active.
3636
public func send(_ element: Element) async {
3737
await self.storage.send(element: element)
3838
}

0 commit comments

Comments
 (0)