Skip to content

Commit

Permalink
Remove all references to package object flow on Stream
Browse files Browse the repository at this point in the history
  • Loading branch information
BalmungSan committed Nov 25, 2024
1 parent f4b825d commit 8406c16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/shared/src/main/scala/fs2/Stream.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,7 @@ final class Stream[+F[_], +O] private[fs2] (private[fs2] val underlying: Pull[F,
* @param subscriber the [[Subscriber]] that will receive the elements of the stream.
*/
def subscribe[F2[x] >: F[x]: Async, O2 >: O](subscriber: Subscriber[O2]): Stream[F2, Nothing] =
interop.flow.subscribeAsStream[F2, O2](this, subscriber)
interop.flow.StreamSubscription.subscribe[F2, O2](this, subscriber)

/** Emits all elements of the input except the first one.
*
Expand Down Expand Up @@ -3001,7 +3001,7 @@ final class Stream[+F[_], +O] private[fs2] (private[fs2] val underlying: Pull[F,

/** @see [[toPublisher]] */
def toPublisherResource[F2[x] >: F[x]: Async, O2 >: O]: Resource[F2, Publisher[O2]] =
interop.flow.toPublisher(this)
interop.flow.StreamPublisher(this)

/** Translates effect type from `F` to `G` using the supplied `FunctionK`.
*/
Expand Down Expand Up @@ -3911,7 +3911,7 @@ object Stream extends StreamLowPriority {
* either the `Chunk` is filled or the publisher finishes.
*/
def fromPublisher[F[_]]: interop.flow.syntax.FromPublisherPartiallyApplied[F] =
interop.flow.fromPublisher
new interop.flow.syntax.FromPublisherPartiallyApplied(dummy = true)

/** Like `emits`, but works for any G that has a `Foldable` instance.
*/
Expand Down Expand Up @@ -4697,7 +4697,7 @@ object Stream extends StreamLowPriority {
def unsafeToPublisher()(implicit
runtime: IORuntime
): Publisher[A] =
interop.flow.unsafeToPublisher(self)
interop.flow.StreamPublisher.unsafe(self)
}

/** Projection of a `Stream` providing various ways to get a `Pull` from the `Stream`. */
Expand Down

0 comments on commit 8406c16

Please sign in to comment.