object Pulse
Object containing utility functions for using pulses
- Alphabetic
- By Inheritance
- Pulse
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- sealed trait Change[+P] extends Pulse[P]
-
final
case class
Exceptional(throwable: Throwable) extends Change[Nothing] with Product with Serializable
Pulse indicating an exception
-
final
case class
Value[+P](update: P) extends Change[P] with Product with Serializable
Pulse indicating a change
Pulse indicating a change
- update
Updated value stored by the pulse
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
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( ... ) @native() @IntrinsicCandidate()
-
def
diffPulse[P](newValue: P, oldPulse: Pulse[P]): Pulse[P]
Transforms the given pulse and an updated value into a pulse indicating a change from the pulse's value to the given updated value.
-
val
empty: Exceptional
the pulse representing an empty signal
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fromOption[P](opt: Option[P]): Pulse[P]
Transforms an optional value into a pulse.
Transforms an optional value into a pulse. If the option doesn't contain a value, an empty pulse indicating no change is returned. Otherwise, a pulse with the option's value set as updated value is returned.
- P
Value type of both option and returned pulse
- opt
Option to transform into a pulse
- returns
Pulse with the option's value set as updated value, or an empty pulse if the option doesn't have a value.
-
def
fromTry[P](tried: Try[P]): Pulse[P]
Transforms a Try into a Value or Exceptional Pulse
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
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() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tryCatch[P >: Change[Nothing] <: Pulse[_]](f: ⇒ P, onEmpty: P = Pulse.empty): P
wrap a pulse generating function to store eventual exceptions into an exceptional pulse
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
object
NoChange extends Pulse[Nothing] with Product with Serializable
Pulse indicating no change