IO
makes easyIO
behaviors and you want to compose them more orthogonally than IO
makes easy[error] ... Symbol 'type cats.Parallel.Aux' is missing from the classpath.
[error] This symbol is required by 'method cats.effect.IOInstances.ioParallel'
on implicit val ec = implicitly[ExecutionContext]
implicit val cs: ContextShift[IO] = IO.contextShift(ec)
val sync = implicitly[Sync[IO]]
IO
, isn't it?
extends
in the same project very similar code compiles without problems. I'll look further tomorrow.
If I have an IO with a timeout:
IO(somefn).timeout(100 millis)
Is it possible for somefn
to create an IO which doesnt get timed out?
def somefn = {
readDb >> computeSomething >> fireOffaTask >> updateDb
}
I'm trying to have the fireOffaTask
run without being effected by timeout.
ioa.start.void
will still get timeout exception.