/fs2-cats-effect

A backport of IOAsyncInstances from fs2-cats to cats 0.9.0

Primary LanguageScalaMIT LicenseMIT

fs2-cats-effect

A backport of IOAsyncInstances from fs2-cats to cats 0.9.0.

Installation

Requirements

Installing

$ sbt publishLocal

Usage

import cats.effect.IO
import fs2.Stream
import fs2.interop.cats.effect._

import scala.concurrent.ExecutionContext.Implicits.global

val helloWorld: Stream[IO, Unit] =
  Stream.eval(IO(println("Hello, world!")))

helloWorld.run.unsafeRunSync

License

MIT