engine

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 33 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.

README

Kite Engine Package

The engine package acts as the central nervous system of the Kite framework. It orchestrates the entire application lifecycle, binding the logical DOM, event system, and the rendering pipelines (style, layout, paint) into a cohesive, high-performance frame loop.

Intent and Philosophy

  1. Single-Threaded Render Tree: To maximize performance and eliminate lock contention, all DOM mutations, style resolutions, and layout measurements occur strictly on the main thread.
  2. Concurrent User Space: User-defined heavy operations (like database queries or network requests) run concurrently in a worker pool. They communicate with the main thread via asynchronous task queues.
  3. Phase-Driven Pipeline: The engine never updates the screen randomly. It strictly batches updates into a discrete frame pipeline (inspired by browser internals) targeting a smooth 60FPS.
  4. Backend Agnosticism: The engine communicates with terminals via a backend.Backend interface, making it trivial to swap between real terminal rendering (Ultraviolet) and mock backends for headless testing.

Core Data Structures

  • Engine: The primary orchestrator. It holds the root dom.Document, the render.RenderView, the style.Resolver, the worker pool, and the event dispatcher.
  • Job: An interface for user-defined asynchronous work. Jobs execute off the main thread but return their completion callbacks safely back to the main thread.
  • Task Queues: The engine maintains separate queues for Microtasks (immediate, fast callbacks) and Macrotasks (budget-capped, lower priority work).

The Frame Pipeline

When engine.Run() is called, it enters a continuous event loop. If the UI is marked dirty or a frame is explicitly requested, it executes the Frame Pipeline:

1. Input Coalescing

Immediately before the frame pipeline begins, the engine drains and coalesces the raw event buffer from the backend:

  • High-Frequency Filtering: Multiple MouseMove events in a single frame are discarded, keeping only the latest coordinate to reduce redundant layout work.
  • Delta Aggregation: Multiple Wheel events targeting the same element are summed into a single aggregate event with combined deltas.
  • Synthesis: Coalesced events are converted into structured DOM events and dispatched through the logical tree.
2. Task Draining

Before touching the UI, the engine processes pending state changes:

  • Worker Results: Collects finished Job callbacks and queues them as microtasks.
  • Macrotasks: Executes pending macrotasks (e.g., timers or deferred UI updates) up to a strict wall-clock/count budget to prevent frame drops.
  • Microtasks: Exhausts all microtasks (promises/callbacks) immediately.
3. Sync Phase (Pre-Layout)

Gated by the NeedsSync flag on the logical DOM. Before styling or layout begins, the engine ensures the visual tree matches the logical tree.

  • Diffing & On-the-Fly Attachment: The engine walks the DOM following ChildNeedsSync relay flags. It creates missing render.Boxes for new elements, and destroys/unlinks render.Boxes for elements removed from the DOM or set to display: none.
  • Result: A perfectly clean, 1:1 render tree is passed to the downstream algorithms.
4. Style Phase

Gated by DirtyStyle or ChildNeedsStyle. The engine calls style.ResolveTree.

  • It applies CSS inheritance and user styles, pulling the sparse RawStyle from the logical DOM and outputting a fully resolved style.Computed object for each node in the render tree.
5. Layout Phase

Gated by DirtyLayout. The engine delegates to render.LayoutPhase (which utilizes the layout package's LayoutNG algorithms).

  • The engine provides the viewport ConstraintSpace.
  • The layout algorithms calculate intrinsic sizes, apply Flex/Block rules, and generate an immutable Fragment tree.
6. Paint Phase

Gated by DirtyPaint. The engine creates a new paint.Surface (a FrameBuffer) from the backend.

  • It walks the immutable Fragment tree, calculating absolute coordinates and pushing colors, borders, and text into the 2D grid.
  • It handles overlays (e.g., modals, dropdowns) by painting them strictly after the main document tree.
7. Backend Sync (Commit)

The engine calls backend.EndFrame(). The backend diffs the newly painted FrameBuffer against the previous frame and flushes the minimal set of ANSI escape sequences to the terminal.

Event Handling

The engine reads raw input from the backend and pushes it into an internal buffer. Immediately before each frame, it coalesces high-frequency inputs (mouse moves and wheel deltas) to reduce redundant DOM processing. The resulting coalesced raw events are then translated via an event.Synthesizer and routed through an event.Dispatcher.

  • Mouse Events: Hit-tested against the immutable Layout Fragment tree to find the exact logical DOM target, then dispatched with standard Capture/Target/Bubble phases.
  • Keyboard Events: Routed via the focus.Manager directly to the currently active DOM node, bubbling up to the document root.

Caret & Spatial Focus Navigation

The engine coordinates character-level text selection carets and spatial focus transitions:

  • Automatic Routing: The engine routes arrow keys to the focused element's MoveCaret() method if it implements dom.SpatialCaret.
  • Boundary Crossing: If caret movement hits the text boundary, the engine automatically triggers a spatial focus transition to the nearest element in that direction.
  • Programmatic API: Developers can trigger these transitions programmatically using the high-level Engine.MoveCaret(dir) and Engine.NavigateFocus(dir) methods, or using the logical DOM dom.Document methods.

Inline Mode & InsertAbove

In addition to traditional fullscreen alternate-screen (altscreen) execution, the engine supports an Inline Mode tailored for interactive CLI utilities, deployment runners, and progress dashboards (such as extras/trail):

  • Configuration: Enabled by passing engine.Options{Inline: true} to engine.New().
  • Auto-Height Layout: When in inline mode, RenderView configures the root constraint space with SetIsFixedBlockSize(false), allowing the layout engine to calculate the natural height of the UI tree constrained to the terminal width rather than forcing full terminal row dimensions.
  • Dynamic Frame Heights: In the paint phase, the engine dynamically resizes the frame buffer and active backend surface to match the rendered fragment height (up to the terminal height limit).
  • Scrollback Insertion (InsertAbove): The engine provides Engine.InsertAbove(node dom.Node) to permanently insert rendered content above the active inline viewport. This mounts the node into a temporary document, performs styling, layout, fragment painting, and border junction resolution, and commits the resulting buffer via backend.InsertAbove. The active inline frame continues running below without flickering or corrupting native scrollback.

Documentation

Overview

Package engine runs Kite applications. An Engine connects a document to a terminal backend, processes input and scheduled work, and lays out and paints the document and its overlays.

Create an engine with New, attach the UI with Engine.Mount, and start the event loop with Engine.Run.

Index

Constants

View Source
const DefaultMacroTaskBudget = 1024

DefaultMacroTaskBudget is the maximum number of macrotasks drained per frame.

View Source
const DefaultMacroTaskDuration = 4 * time.Millisecond

DefaultMacroTaskDuration is the wall-clock budget for the macrotask drain phase per frame.

View Source
const DefaultWorkers = 4

DefaultWorkers is the number of worker goroutines in the pool when not configured explicitly.

View Source
const MinFrameInterval = 8 * time.Millisecond

MinFrameInterval is the minimum elapsed time between two consecutive frames. Frame requests within this window coalesce into a single frame.

View Source
const UnlimitedMacroTaskDuration time.Duration = -1

UnlimitedMacroTaskDuration disables the wall-clock budget during macrotask draining (draining remains bounded by MacroTaskBudget). Intended for deterministic headless tests.

Variables

View Source
var ErrExecBusy = errors.New("terminal already has an active subprocess")

ErrExecBusy is returned by ExecProcess when another subprocess already owns the terminal.

View Source
var ErrExecUnsupported = errors.New("terminal backend does not support process suspension")

ErrExecUnsupported is returned by ExecProcess when the active backend does not implement backend.Suspender.

Functions

func WithProfiler

func WithProfiler(enabled bool) func(*Options)

WithProfiler enables or disables the engine's built-in profiler.

Types

type ClipboardProxy

type ClipboardProxy struct {
	// contains filtered or unexported fields
}

func (*ClipboardProxy) ListFormats

func (c *ClipboardProxy) ListFormats() *promise.Promise[[]string]

func (*ClipboardProxy) Read

func (c *ClipboardProxy) Read(mime string) *promise.Promise[[]byte]

func (*ClipboardProxy) ReadText

func (c *ClipboardProxy) ReadText() *promise.Promise[string]

func (*ClipboardProxy) Write

func (c *ClipboardProxy) Write(mime string, data []byte) *promise.Promise[struct{}]

func (*ClipboardProxy) WriteText

func (c *ClipboardProxy) WriteText(text string) *promise.Promise[struct{}]

type Clock

type Clock interface {
	// Now returns the current time.
	Now() time.Time

	// After returns a channel that receives the current time after duration d
	// has elapsed. The channel is never closed.
	After(d time.Duration) <-chan time.Time
}

Clock is an injectable time source used by the engine for frame scheduling. The real implementation delegates to the standard library; tests supply a fake implementation to exercise time-dependent behaviour deterministically.

Clock implementations must be safe for concurrent use.

func RealClock

func RealClock() Clock

RealClock returns a Clock that delegates to time.Now and time.After.

type CursorController

type CursorController struct {
	// contains filtered or unexported fields
}

CursorController controls the next frame's hardware cursor on the main goroutine.

func (*CursorController) Hide

func (c *CursorController) Hide()

Hide suppresses the hardware cursor for this frame.

func (*CursorController) SetPos

func (c *CursorController) SetPos(x, y int)

SetPos updates the terminal-cell position without changing visibility.

func (*CursorController) SetPosition

func (c *CursorController) SetPosition(x, y int)

SetPosition places and shows the hardware cursor for this frame.

func (*CursorController) SetShape

func (c *CursorController) SetShape(shape style.CursorShape)

SetShape selects the hardware cursor shape for this frame.

func (*CursorController) Show

func (c *CursorController) Show(visible bool)

Show overrides cursor visibility for this frame.

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine orchestrates the five-phase frame pipeline (Tasks → Style → Layout → Paint → Sync), the worker pool, and the macrotask / microtask queues.

Engine must be used from a single main goroutine for all render-tree operations; the worker pool runs concurrent goroutines for user-submitted task only.

func New

func New(b backend.Backend, opts Options) *Engine

New creates an Engine configured with the given backend and options.

Call Engine.Run to start the event loop (blocking), or call Engine.Frame directly for testing.

func (*Engine) AddEventListener

func (e *Engine) AddEventListener(target any, typ event.EventType, fn event.Listener, opts ...event.Option) event.Subscription

AddEventListener registers fn as a listener for event of type typ on target. It returns a Subscription that can be used to remove the listener.

func (*Engine) Bell

func (e *Engine) Bell()

Bell emits a BEL character. It is a no-op when Caps.Bell is false.

Bell must be called from the main goroutine.

func (*Engine) Caps

func (e *Engine) Caps() backend.Caps

Caps returns the terminal capability snapshot probed at startup.

func (*Engine) Clear

func (e *Engine) Clear()

Clear clears the terminal and scrollback without unmounting the document, and schedules a repaint of the active UI.

func (*Engine) ColorScheme

func (e *Engine) ColorScheme() style.ColorScheme

func (*Engine) Cursor

func (e *Engine) Cursor() *CursorController

Cursor returns the CursorController that widgets use to drive cursor state.

func (*Engine) DebugXRay

func (e *Engine) DebugXRay() bool

DebugXRay reports whether the visual layout debugging overlay is enabled.

func (*Engine) Document

func (e *Engine) Document() dom.Document

Document returns the logical document root.

func (*Engine) Done

func (e *Engine) Done() <-chan struct{}

Done returns a channel that is closed when the engine stops.

func (*Engine) Dump

func (e *Engine) Dump(path string) error

func (*Engine) EnsureFreshLayout

func (e *Engine) EnsureFreshLayout()

EnsureFreshLayout forces an immediate Sync and Layout pass if the DOM or Render tree is dirty. This guarantees that subsequent reads of layout data (like element bounds or cursor positions) are accurate. This is analogous to forced synchronous layout in web browsers.

func (*Engine) ExecProcess

func (e *Engine) ExecProcess(ctx context.Context, cmd *exec.Cmd) (err error)

ExecProcess suspends the terminal backend, runs cmd to completion (inheriting unset stdio streams from the backend), and resumes rendering with a full repaint. Safe to call from event handlers or background goroutines.

func (*Engine) FocusManager

func (e *Engine) FocusManager() *focus.Manager

FocusManager returns the engine's focus.Manager so that tests and application code can drive focus programmatically (e.g. simulate a mousedown-to-focus or query the currently focused node).

func (*Engine) FocusedTarget

func (e *Engine) FocusedTarget() event.EventTarget

FocusedTarget returns the currently focused event target, or nil. It satisfies the event.FocusReader interface.

func (*Engine) Frame

func (e *Engine) Frame()

Frame executes one complete frame pipeline:

  1. Sync Phase.
  2. Task Phase (macrotasks + microtasks).
  3. Style phase.
  4. Layout phase.
  5. Paint phase.
  6. Commit.

Frame must be called from the main goroutine.

func (*Engine) HasPendingTasks

func (e *Engine) HasPendingTasks() bool

HasPendingTasks reports whether the engine's scheduler has any queued microtasks or macrotasks waiting to be drained.

func (*Engine) HitTest

func (e *Engine) HitTest(x, y int) event.EventTarget

HitTest walks the render tree at point (x, y) and returns the topmost event target at that position. It tests overlays (topmost-first) before falling through to the main tree. Returns nil when no target is hit.

func (*Engine) InsertAbove

func (e *Engine) InsertAbove(node dom.Node)

InsertAbove renders an arbitrary dom.Node (detached from the main document) into a *backend.Buffer and inserts it above the next active frame.

func (*Engine) IsInline

func (e *Engine) IsInline() bool

IsInline reports whether inline mode is enabled.

func (*Engine) Mount

func (e *Engine) Mount(root dom.Element)

Mount appends root as the body of the document.

func (*Engine) MoveCaret

func (e *Engine) MoveCaret(dir dom.Direction) bool

MoveCaret moves the global selection caret in the specified direction. If the caret hits the edge of the focused element, it shifts focus spatially. It returns true if a transition occurred.

func (*Engine) NavigateFocus

func (e *Engine) NavigateFocus(dir dom.Direction) bool

NavigateFocus shifts DOM focus in the specified direction within the active focus scope. It returns true if focus successfully shifted to a new element.

func (*Engine) OnFrameRendered

func (e *Engine) OnFrameRendered(fn func())

OnFrameRendered registers a hook to be called after every frame is committed.

func (*Engine) OnStop

func (e *Engine) OnStop(fn func())

OnStop registers a hook to be called when the engine stops. If the engine is already stopped, fn is invoked immediately.

func (*Engine) PaintEngine

func (e *Engine) PaintEngine() *paint.PaintEngine

PaintEngine returns the internal paint engine.

func (*Engine) Post

func (e *Engine) Post(fn func())

Post schedules fn as a microtask. Microtasks run on the main thread and are drained (until the queue is empty) during each frame, between macrotask iterations and at the end of the task phase.

Post is safe to call from any goroutine.

func (*Engine) PostMacro

func (e *Engine) PostMacro(fn func())

PostMacro schedules fn as a macrotask. Macrotasks are drained once per frame, subject to the configured count and duration budgets.

PostMacro is safe to call from any goroutine.

func (*Engine) ProcessRawEvent

func (e *Engine) ProcessRawEvent(raw backend.RawEvent)

ProcessRawEvent converts a raw backend event into a sequence of DOM events and dispatches them through the tree. It is used primarily for testing and for custom event-loop implementations.

func (*Engine) RenderObject

func (e *Engine) RenderObject(n dom.Node) render.Object

func (*Engine) RenderView

func (e *Engine) RenderView() *render.RenderView

RenderView returns the root render object owned by this engine.

func (*Engine) RequestAnimationFrame

func (e *Engine) RequestAnimationFrame(fn func(time.Time)) func()

func (*Engine) RequestFrame

func (e *Engine) RequestFrame()

RequestFrame schedules a frame wake-up as soon as possible (after at least MinFrameInterval has elapsed since the last frame). Consecutive calls within MinFrameInterval coalesce.

RequestFrame is safe to call from any goroutine.

func (*Engine) RequestFrameAt

func (e *Engine) RequestFrameAt(t time.Time)

RequestFrameAt schedules a frame wake-up at time t. If t is before time.Now() the frame is scheduled immediately.

RequestFrameAt must be called from the main goroutine.

func (*Engine) Run

func (e *Engine) Run(ctx context.Context) error

Run starts the engine's main event loop. It blocks until Stop is called, ctx is canceled, or the backend signals exit. A callback panic propagates after the engine stops and restores the terminal.

func (*Engine) Scheduler

func (e *Engine) Scheduler() terminal.Scheduler

Scheduler returns the engine's task scheduler.

func (*Engine) SetColorScheme

func (e *Engine) SetColorScheme(scheme style.ColorScheme)

func (*Engine) SetDebugXRay

func (e *Engine) SetDebugXRay(enabled bool)

SetDebugXRay toggles the visual layout debugging overlay.

func (*Engine) SetInterval

func (e *Engine) SetInterval(fn func(), interval time.Duration) *Timer

SetInterval schedules fn to run on the main thread repeatedly at the specified interval. It is safe to call from any goroutine.

func (*Engine) SetMouseMode

func (e *Engine) SetMouseMode(mode MouseMode)

SetMouseMode configures the mouse-event level. The backend toggles the relevant terminal protocol; the engine carries the policy.

SetMouseMode must be called from the main goroutine.

func (*Engine) SetProgramResume

func (e *Engine) SetProgramResume(resume *terminal.ProgramResume)

SetProgramResume reports the command to resume this process using OSC 7577. It is a no-op if Caps.ProgramResume is false.

SetProgramResume must be called from the main goroutine.

func (*Engine) SetProgramStatus

func (e *Engine) SetProgramStatus(status *terminal.ProgramStatus)

SetProgramStatus reports the program status to the terminal using OSC 7501. It is a no-op if Caps.ProgramStatus is false.

SetProgramStatus must be called from the main goroutine.

func (*Engine) SetProgressBar

func (e *Engine) SetProgressBar(state backend.ProgressBarState, percentage int)

SetProgressBar updates the terminal window tab's native progress bar. It is a no-op if Caps.ProgressBar is false.

SetProgressBar must be called from the main goroutine.

func (*Engine) SetTimeout

func (e *Engine) SetTimeout(fn func(), delay time.Duration) *Timer

SetTimeout schedules fn to run on the main thread after the specified delay. It is safe to call from any goroutine.

func (*Engine) SetTitle

func (e *Engine) SetTitle(s string)

SetTitle sets the terminal window title. It is a no-op when Caps.Title is false.

SetTitle must be called from the main goroutine.

func (*Engine) StartProfiling

func (e *Engine) StartProfiling()

StartProfiling dynamically enables profiling by wrapping the engine's active pipeline with ProfilingPipeline (if not already wrapped) and starting a new tracer.

func (*Engine) Stop

func (e *Engine) Stop()

Stop shuts down the scheduler and restores the backend. Repeated calls are safe.

func (*Engine) StopProfiling

func (e *Engine) StopProfiling() *trace.Tracer

StopProfiling dynamically disables profiling by reverting the engine's active pipeline to the standard (unwrapped) pipeline and returning the accumulated tracer. If profiling was not active, it returns nil.

func (*Engine) Tracer

func (e *Engine) Tracer() *trace.Tracer

Tracer returns the engine's active tracer, or nil if profiling is disabled.

type MouseMode

type MouseMode uint8

MouseMode configures what level of mouse event the backend enables.

const (
	// MouseModeOff disables all mouse event reporting.
	MouseModeOff MouseMode = iota
	// MouseModeClick enables button-press event only.
	MouseModeClick
	// MouseModeDrag enables drag event (motion while button held, default).
	MouseModeDrag
	// MouseModeTrack enables full motion tracking including hover event.
	MouseModeTrack
)

type Options

type Options struct {
	// Clipboard overrides the backend's default OSC 52 clipboard when non-nil.
	Clipboard terminal.Clipboard
	// NumWorkers is the size of the worker pool (default DefaultWorkers).
	NumWorkers int
	// MacroTaskBudget caps macrotasks per frame by count (default DefaultMacroTaskBudget).
	MacroTaskBudget int
	// MacroTaskDuration caps macrotasks per frame by wall clock (default DefaultMacroTaskDuration).
	// Set to UnlimitedMacroTaskDuration (or any negative duration) to disable the wall-clock cap.
	MacroTaskDuration time.Duration
	// Clock is the injectable time source. Defaults to RealClock().
	Clock Clock
	// ShutdownTimeout bounds how long Stop waits for pending jobs before
	// forcing exit. Default is 5 seconds.
	ShutdownTimeout time.Duration
	// Profiler enables the high-level phase profiling and deep-tree tracing.
	Profiler bool
	// Inline enables inline mode (relative cursor, dynamic height, no alt-screen).
	Inline bool
}

Options configures an Engine.

type Pipeline

type Pipeline interface {
	Sync(e *Engine)
	Tasks(e *Engine)
	Style(e *Engine)
	Layout(e *Engine) bool // returns layoutRan
	Paint(e *Engine, layoutRan bool)
}

Pipeline defines the core phases of the Kite rendering engine. Abstracting these into an interface allows for decorators like a Profiler to wrap the standard execution loop without polluting the core logic.

type ProfilingPipeline

type ProfilingPipeline struct {
	// contains filtered or unexported fields
}

ProfilingPipeline wraps a Pipeline and records phase durations using a trace.Tracer.

func (*ProfilingPipeline) Layout

func (p *ProfilingPipeline) Layout(e *Engine) bool

func (*ProfilingPipeline) Paint

func (p *ProfilingPipeline) Paint(e *Engine, layoutRan bool)

func (*ProfilingPipeline) Style

func (p *ProfilingPipeline) Style(e *Engine)

func (*ProfilingPipeline) Sync

func (p *ProfilingPipeline) Sync(e *Engine)

func (*ProfilingPipeline) Tasks

func (p *ProfilingPipeline) Tasks(e *Engine)

type StandardPipeline

type StandardPipeline struct {
	// contains filtered or unexported fields
}

StandardPipeline is the default implementation of the Kite rendering pipeline.

func (*StandardPipeline) Layout

func (p *StandardPipeline) Layout(e *Engine) bool

func (*StandardPipeline) Paint

func (p *StandardPipeline) Paint(e *Engine, layoutRan bool)

func (*StandardPipeline) Style

func (p *StandardPipeline) Style(e *Engine)

func (*StandardPipeline) Sync

func (p *StandardPipeline) Sync(e *Engine)

func (*StandardPipeline) Tasks

func (p *StandardPipeline) Tasks(e *Engine)

type TerminalProxy

type TerminalProxy struct {
	// contains filtered or unexported fields
}

TerminalProxy exposes the engine's host services to its document.

func (*TerminalProxy) Bell

func (tp *TerminalProxy) Bell()

func (*TerminalProxy) Clipboard

func (tp *TerminalProxy) Clipboard() terminal.Clipboard

Clipboard returns the provider selected during engine construction.

func (*TerminalProxy) Cursor

func (tp *TerminalProxy) Cursor() terminal.Cursor

Cursor returns the engine's per-frame hardware cursor controller.

func (*TerminalProxy) ExecProcess

func (tp *TerminalProxy) ExecProcess(ctx context.Context, cmd *exec.Cmd) error

ExecProcess hands off the terminal to cmd until it exits, then resumes rendering.

func (*TerminalProxy) IsClosed

func (tp *TerminalProxy) IsClosed() bool

func (*TerminalProxy) OnClose

func (tp *TerminalProxy) OnClose(fn func())

func (*TerminalProxy) Scheduler

func (tp *TerminalProxy) Scheduler() terminal.Scheduler

func (*TerminalProxy) SetProgramResume

func (tp *TerminalProxy) SetProgramResume(resume *terminal.ProgramResume)

func (*TerminalProxy) SetProgramStatus

func (tp *TerminalProxy) SetProgramStatus(status *terminal.ProgramStatus)

func (*TerminalProxy) SetProgressBar

func (tp *TerminalProxy) SetProgressBar(state terminal.ProgressBarState, percentage int)

func (*TerminalProxy) SetTitle

func (tp *TerminalProxy) SetTitle(title string)

func (*TerminalProxy) Window

func (tp *TerminalProxy) Window() terminal.Window

Window provides frame scheduling on the engine's rendering loop.

type Timer

type Timer struct {
	// contains filtered or unexported fields
}

Timer represents a scheduled timeout or interval.

func (*Timer) Stop

func (t *Timer) Stop()

Stop cancels the timer.

Jump to

Keyboard shortcuts

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