trait Signal[A] extends AnyRef
- Alphabetic
- By Inheritance
- Signal
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
changed: Process[Task, Boolean]
Returns a continuous stream, indicating whether the value has changed.
Returns a continuous stream, indicating whether the value has changed. This will spike
trueonce for each time the value ofSignalwas changed. It will always start withtruewhen the process is run or when theSignalis set for the first time. -
abstract
def
changes: Process[Task, Unit]
Returns the discrete version of
changed.Returns the discrete version of
changed. Will emitUnitwhen thevalueis changed. -
abstract
def
continuous: Process[Task, A]
Returns the continuous version of this signal, always equal to the current
Ainsidevalue.Returns the continuous version of this signal, always equal to the current
Ainsidevalue. Note that this may not see all changes ofAas it gets always current freshAat every request. -
abstract
def
discrete: Process[Task, A]
Returns the discrete version of this signal, updated only when
valueis changed.Returns the discrete version of this signal, updated only when
valueis changed. Value may change several times between reads, but it is guaranteed this will always get latest known value after any change. If you want to be notified about every single change useasync.queuefor signalling.It will emit the current value of the Signal after being run or when the signal is set for the first time
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Signal[A], B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def ensuring(cond: (Signal[A]) ⇒ Boolean, msg: ⇒ Any): Signal[A]
- def ensuring(cond: (Signal[A]) ⇒ Boolean): Signal[A]
- def ensuring(cond: Boolean, msg: ⇒ Any): Signal[A]
- def ensuring(cond: Boolean): Signal[A]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (Signal[A], B)