Event

rescala.operator.EventBundle.Event
See theEvent companion trait
opaque object Event

Similar to rescala.operator.SignalBundle.Signal expressions, but resulting in an event. Accessed events return options depending on whether they fire or not, and the complete result of the expression is an event as well.

Attributes

See also
Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Event.type

Members list

Type members

Classlikes

case class CBR[T, R](event: Event[T], data: R)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Types

opaque type Accepts[T]

Value members

Concrete methods

inline def apply[T](inline expr: Option[T])(using ct: CreationTicket[BundleState]): Event[T]
inline def dynamic[T](inline expr: Option[T])(using ct: CreationTicket[BundleState]): Event[T]
def fromCallback[R, T](using CreationTicket[BundleState])(block: (Accepts[T]) ?=> R): CBR[T, R]

Allows to call some API that requires a callback.

Allows to call some API that requires a callback.

val toggle = Event.fromCallback[UIEvent] {
 input(`type` := "checkbox",
       onchange := Event.handle)
}

Attributes

def handle[T](using cbt: Accepts[T], scheduler: Scheduler[BundleState])(v: T): Unit

The callback available within fromCallback

The callback available within fromCallback

Attributes

inline def static[T](inline expr: Option[T])(using ct: CreationTicket[BundleState]): Event[T]