object Supervisor
- Companion:
- class
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: F[Unit] = // never completes Supervisor[F](await = true).use { supervisor => supervisor.supervise(Concurrent[F].never).void }