val ioA = IO(...) val ioB = IO(...) val ioC = IO(...) (ioA, ioB, ioC).parMapN((_, _, _) => ())
1.0.0-RC2
could not find implicit value for parameter p: cats.NonEmptyParallel[cats.effect.IO,F]
我一辈子都想不出我需要什么来让它重新工作。有人知道我需要导入或传递什么吗(我试过隐式的 Timer[IO] )让它恢复运行?谢谢。
Timer[IO]
自 RC3 ,IO的并行实例 requires a ContextShift[IO] implicit 而不是 Timer[IO] .
ContextShift[IO]
IOApp 或者通过做 IO.contextShift(ec) ec 是 scala.concurrent.ExecutionContext
IOApp
IO.contextShift(ec)
ec
scala.concurrent.ExecutionContext