SignallingRef

fs2.concurrent.SignallingRef$
See theSignallingRef companion class

Attributes

Companion:
class
Source:
Signal.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply[F[_]]: PartiallyApplied[F]

Builds a SignallingRef value for data types that are Concurrent.

Builds a SignallingRef value for data types that are Concurrent.

This builder uses the Partially-Applied Type technique.

 SignallingRef[IO].of(10L) <-> SignallingRef.of[IO, Long](10L)

Attributes

See also:
Source:
Signal.scala
def apply[F[_] : Concurrent, A](initial: A): F[SignallingRef[F, A]]

Alias for of.

Alias for of.

Attributes

Source:
Signal.scala
def lens[F[_], A, B](ref: SignallingRef[F, A])(get: A => B, set: A => B => A)(implicit F: Functor[F]): SignallingRef[F, B]

Creates an instance focused on a component of another SignallingRef's value. Delegates every get and modification to underlying SignallingRef, so both instances are always in sync.

Creates an instance focused on a component of another SignallingRef's value. Delegates every get and modification to underlying SignallingRef, so both instances are always in sync.

Attributes

Source:
Signal.scala
def of[F[_], A](initial: A)(implicit F: Concurrent[F]): F[SignallingRef[F, A]]

Builds a SignallingRef for for effect F, initialized to the supplied value.

Builds a SignallingRef for for effect F, initialized to the supplied value.

Attributes

Source:
Signal.scala

Implicits

Implicits

implicit def invariantInstance[F[_] : Functor]: Invariant[[_] =>> SignallingRef[F, _$28]]

Attributes

Source:
Signal.scala