object Supervisor
- Companion:
- class
- Source:
- Supervisor.scala
Value members
Concrete methods
Creates a cats.effect.kernel.Resource scope within which fibers can be monitored. When this scope exits, all supervised fibers will be finalized.
Creates a cats.effect.kernel.Resource scope within which fibers can be monitored. When this scope exits, all supervised fibers will be finalized.
- Value parameters:
- await
the termination policy
- true - wait for the completion of the active fibers
- false - cancel the active fibers
- Note:
if an effect that never completes, is supervised by a
Supervisor
with awaiting termination policy, the termination of theSupervisor
is indefinitely suspendedval io: IO[Unit] = // never completes Supervisor[IO](await = true).use { supervisor => supervisor.supervise(IO.never).void }
- Source:
- Supervisor.scala