Documentation
¶
Overview ¶
Package onevent holds the facts of an on: event that package gx and the compiler share (REQ-ACT-08).
Index ¶
Constants ¶
const Concurrent = "concurrent"
Concurrent is the modifier that lets an element send a request while an earlier request of the element is in flight.
const Hidden = "background"
Hidden is the modifier that lets an interval event run while the page is hidden and while the request of its last tick is open, as in on:interval(5s).background (REQ-ACT-11). An interval with no such modifier skips those ticks.
const Topic = "topic"
Topic is the event of a server topic: on:topic(t) runs its action when server code publishes the key of t (REQ-ACT-22).
Variables ¶
This section is empty.
Functions ¶
func Background ¶
Background reports whether the event is one that no user makes: the element of such an event gets no pending mark and no guard. The event can carry its period, as in "interval(5s)".
func Guarded ¶
Guarded reports whether a second request of the element is dropped while its first request is in flight: a click, a double click and a submit, where a second event is a repeat of the first. The element of each other user event, such as input with a debounce, gets the pending mark and no guard, so its newest request wins.
Types ¶
This section is empty.