onevent

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package onevent holds the facts of an on: event that package gx and the compiler share (REQ-ACT-08).

Index

Constants

View Source
const Concurrent = "concurrent"

Concurrent is the modifier that lets an element send a request while an earlier request of the element is in flight.

View Source
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.

View Source
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

func Background(event string) bool

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

func Guarded(event string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL