abstract class Signal[F[_], A] extends AnyRef
Data type of a single value of type A that can be read in the effect F.
- Self Type
- Signal[F, A]
- Source
- Signal.scala
- Alphabetic
- By Inheritance
- Signal
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Signal()
Abstract Value Members
-
abstract
def
continuous: Stream[F, A]
Returns the continuous version of this signal, which emits the current
Avalue on each request for an element from the stream.Returns the continuous version of this signal, which emits the current
Avalue on each request for an element from the stream.Note that this may not see all changes of
Aas it always gets the currentAat each request for an element. -
abstract
def
discrete: Stream[F, A]
Returns the discrete version of this signal, updated only when the value is changed.
Returns the discrete version of this signal, updated only when the value is changed.
The value _may_ change several times between reads, but it is guaranteed the latest value will be emitted after a series of changes.
If you want to be notified about every single change, use
async.queuefor signalling. -
abstract
def
get: F[A]
Asynchronously gets the current value of this
Signal.
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[F, 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
- @native() @throws( ... )
- def ensuring(cond: (Signal[F, A]) ⇒ Boolean, msg: ⇒ Any): Signal[F, A]
- def ensuring(cond: (Signal[F, A]) ⇒ Boolean): Signal[F, A]
- def ensuring(cond: Boolean, msg: ⇒ Any): Signal[F, A]
- def ensuring(cond: Boolean): Signal[F, 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
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
- @native() @throws( ... )
- def →[B](y: B): (Signal[F, A], B)