lys-ui-invoke

command
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT, MIT Imports: 9 Imported by: ? 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

Command lys-ui-invoke demonstrates the threading model. A spawned command "polls a sensor" twice a second on its own goroutine and sends each reading to the component's Update, while Application.Every drives a second label on the loop's own timer wakes. Between ticks the loop parks: build with -tags lysdebug, run with LYS_DEBUG=wake, and watch it go quiet - two wakeups per second, nothing in between, 0% idle CPU.

Jump to

Keyboard shortcuts

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