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 8538a27 commit 9056195
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 LowPrioritySignalImplicits {
}
}

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 9056195

Please sign in to comment.