Supervisor

abstract class Supervisor[+A]

A Supervisor[A] is allowed to supervise the launching and termination of fibers, producing some visible value of type A from the supervision.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def value: UIO[A]

Returns an effect that succeeds with the value produced by this supervisor. This value may change over time, reflecting what the supervisor produces as it supervises fibers.

Returns an effect that succeeds with the value produced by this supervisor. This value may change over time, reflecting what the supervisor produces as it supervises fibers.

Concrete methods

final def &&[B](that0: => Supervisor[B]): Supervisor[(A, B)]

Returns a new supervisor that performs the function of this supervisor, and the function of the specified supervisor, producing a tuple of the outputs produced by both supervisors.

Returns a new supervisor that performs the function of this supervisor, and the function of the specified supervisor, producing a tuple of the outputs produced by both supervisors.

The composite supervisor indicates that it has fully handled the supervision event if only both component supervisors indicate they have handled the supervision event.

final def ||[B](that0: => Supervisor[B]): Supervisor[(A, B)]

Returns a new supervisor that performs the function of this supervisor, and the function of the specified supervisor, producing a tuple of the outputs produced by both supervisors.

Returns a new supervisor that performs the function of this supervisor, and the function of the specified supervisor, producing a tuple of the outputs produced by both supervisors.

The composite supervisor indicates that it has fully handled the supervision event if either component supervisors indicate they have handled the supervision event.