Writer which shifts I/O operations to a thread pool provided for blocking operations. Uses the built-in internal blocking thread pool.
Type parameters
F
the effect type, with type classes providing support for suspended execution (typically cats.effect.IO), Async execution environment with blocking and non-blocking thread pools (to shift back and forth) and logging (provided internally by spata).
given codec = new Codec(Charset.forName("UTF-8"))
val path = Path.of("data.csv")
val stream: Stream[IO, Char] = ???
val handler: Stream[IO, Unit] = stream.through(wW.shifting[IO].write(path))