Skip to content

Commit

Permalink
doc(BidrectionalSyncStream): add doc for method makeStream(of:)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockmagma02 committed Apr 21, 2024
1 parent 0b3d9a3 commit d7bef78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/SyncStream/BidirectionalSyncStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ public extension BidirectionalSyncStream {
}
}

/// Constructs an Bidrectional synchronous stream from the Element Type
///
/// - Returns: A tuple containing the stream and its continuation. The continuation
/// should be passed to the producer while the stream should be passed to the consumer.
static func makeStream(
_: YieldT.Type = YieldT.self,
_: SendT.Type = SendT.self,
Expand Down

0 comments on commit d7bef78

Please sign in to comment.