abstract class SignallingRef[F[_], A] extends Ref[F, A] with Signal[F, A]
Pure holder of a single value of type A
that can be both read and updated in the effect F
.
- Source
- Signal.scala
- Alphabetic
- By Inheritance
- SignallingRef
- Signal
- Ref
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SignallingRef()
Abstract Value Members
- abstract def access: F[(A, (A) => F[Boolean])]
- Definition Classes
- Ref
- abstract def continuous: Stream[F, A]
Returns a stream of the current value of the signal.
Returns a stream of the current value of the signal. An element is always available -- on each pull, the current value is supplied.
- Definition Classes
- Signal
- abstract def discrete: Stream[F, A]
Returns a stream of the updates to this signal.
Returns a stream of the updates to this signal.
Updates that are very close together may result in only the last update appearing in the stream. If you want to be notified about every single update, use a
Queue
instead.- Definition Classes
- Signal
- abstract def get: F[A]
Asynchronously gets the current value of this
Signal
.Asynchronously gets the current value of this
Signal
.- Definition Classes
- Signal
- abstract def getAndSet(a: A): F[A]
- Definition Classes
- Ref
- abstract def modify[B](f: (A) => (A, B)): F[B]
- Definition Classes
- Ref
- abstract def modifyState[B](state: State[A, B]): F[B]
- Definition Classes
- Ref
- abstract def set(a: A): F[Unit]
- Definition Classes
- Ref
- abstract def tryModify[B](f: (A) => (A, B)): F[Option[B]]
- Definition Classes
- Ref
- abstract def tryModifyState[B](state: State[A, B]): F[Option[B]]
- Definition Classes
- Ref
- abstract def tryUpdate(f: (A) => A): F[Boolean]
- Definition Classes
- Ref
- abstract def update(f: (A) => A): F[Unit]
- Definition Classes
- Ref
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from SignallingRef[F, A] toany2stringadd[SignallingRef[F, A]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (SignallingRef[F, A], B)
- Implicit
- This member is added by an implicit conversion from SignallingRef[F, A] toArrowAssoc[SignallingRef[F, A]] performed by method ArrowAssoc in scala.Predef.This conversion will take place only if A is Boolean (A =:= Boolean).
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (SignallingRef[F, A]) => Boolean, msg: => Any): SignallingRef[F, A]
- Implicit
- This member is added by an implicit conversion from SignallingRef[F, A] toEnsuring[SignallingRef[F, A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (SignallingRef[F, A]) => Boolean): SignallingRef[F, A]
- Implicit
- This member is added by an implicit conversion from SignallingRef[F, A] toEnsuring[SignallingRef[F, A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): SignallingRef[F, A]
- Implicit
- This member is added by an implicit conversion from SignallingRef[F, A] toEnsuring[SignallingRef[F, A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): SignallingRef[F, A]
- Implicit
- This member is added by an implicit conversion from SignallingRef[F, A] toEnsuring[SignallingRef[F, A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from SignallingRef[F, A] toStringFormat[SignallingRef[F, A]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapK[G[_]](f: ~>[F, G])(implicit F: Functor[F]): Ref[G, A]
- Definition Classes
- Ref
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
- def →[B](y: B): (SignallingRef[F, A], B)
- Implicit
- This member is added by an implicit conversion from SignallingRef[F, A] toArrowAssoc[SignallingRef[F, A]] performed by method ArrowAssoc in scala.Predef.This conversion will take place only if A is Boolean (A =:= Boolean).
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.