Skip to content

Commit 2e76fd1

Browse files
committed
🛠 Corrects access control on values extensions.
1 parent 2009af9 commit 2e76fd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/Fuse/Publishers/BuffableAsyncPublisher.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ extension Publisher where Failure == Never {
101101
/// - Parameter bufferingPolicy: By providing a buffering policy, you can customize the behavior when sequence publishes values faster than they can be handled.
102102
///
103103
/// This property provides an ``BuffableAsyncPublisher``, which allows you to use the Swift `async`-`await` syntax to receive the publisher's elements. Because ``BuffableAsyncPublisher`` conforms to <doc://com.apple.documentation/documentation/Swift/AsyncSequence>, you iterate over its elements with a `for`-`await`-`in` loop, rather than attaching a subscriber.
104-
func values(bufferingPolicy: AsyncStream<Output>.Continuation.BufferingPolicy) -> BuffableAsyncPublisher<Self> {
104+
public func values(bufferingPolicy: AsyncStream<Output>.Continuation.BufferingPolicy) -> BuffableAsyncPublisher<Self> {
105105
BuffableAsyncPublisher(self, bufferingPolicy: bufferingPolicy)
106106
}
107107
}

Sources/Fuse/Publishers/BuffableAsyncThrowingPublisher.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ extension Publisher {
105105
///
106106
/// This property provides an ``BuffableAsyncThrowingPublisher``, which allows you to use the Swift `async`-`await` syntax to receive the publisher's elements. Because ``BuffableAsyncThrowingPublisher`` conforms to <doc://com.apple.documentation/documentation/Swift/AsyncSequence>, you iterate over its elements with a `for`-`await`-`in` loop, rather than attaching a subscriber.
107107
@_disfavoredOverload
108-
func values(bufferingPolicy: AsyncThrowingStream<Output, Error>.Continuation.BufferingPolicy) -> BuffableAsyncThrowingPublisher<Self> {
108+
public func values(bufferingPolicy: AsyncThrowingStream<Output, Error>.Continuation.BufferingPolicy) -> BuffableAsyncThrowingPublisher<Self> {
109109
BuffableAsyncThrowingPublisher(self, bufferingPolicy: bufferingPolicy)
110110
}
111111
}

0 commit comments

Comments
 (0)