Skip to content

Commit

Permalink
Make map method on Signal object package private
Browse files Browse the repository at this point in the history
I'm wary of inadvertently increasing the public API of fs2. I'd be more
comfortable doing so in the 1.0 release.
  • Loading branch information
changlinli committed May 22, 2018
1 parent c2f2812 commit aaa851f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ object Signal extends SignalLowPriorityImplicits {
}
}

def map[F[_]: Functor, A, B](fa: Signal[F, A])(f: A => B): Signal[F, B] =
private[immutable] def map[F[_]: Functor, A, B](fa: Signal[F, A])(f: A => B): Signal[F, B] =
new Signal[F, B] {
def continuous: Stream[F, B] = fa.continuous.map(f)
def discrete: Stream[F, B] = fa.discrete.map(f)
Expand Down

0 comments on commit aaa851f

Please sign in to comment.