Skip to content

Commit

Permalink
Removed a reference to ce2 Effect
Browse files Browse the repository at this point in the history
  • Loading branch information
domaspoliakas committed Sep 27, 2021
1 parent 8f8f9f6 commit f93bc4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ val eff = Stream.eval(IO { println("BEING RUN!!"); 1 + 1 })

`IO` is an effect type we'll see a lot in these examples. Creating an `IO` has no side effects, and `Stream.eval` doesn't do anything at the time of creation, it's just a description of what needs to happen when the stream is eventually interpreted. Notice the type of `eff` is now `Stream[IO,Int]`.

The `eval` function works for any effect type, not just `IO`. FS2 does not care what effect type you use for your streams. You may use `IO` for effects or bring your own, just by implementing a few interfaces for your effect type (e.g., `cats.MonadError[?, Throwable]`, `cats.effect.Sync`, `cats.effect.Async`, `cats.effect.Concurrent`, and `cats.effect.Effect`). Here's the signature of `eval`:
The `eval` function works for any effect type, not just `IO`. FS2 does not care what effect type you use for your streams. You may use `IO` for effects or bring your own, just by implementing a few interfaces for your effect type (e.g., `cats.MonadError[?, Throwable]`, `cats.effect.Sync`, `cats.effect.Async`, `cats.effect.Concurrent`). Here's the signature of `eval`:

```scala
def eval[F[_],A](f: F[A]): Stream[F,A]
Expand Down

0 comments on commit f93bc4a

Please sign in to comment.