mainloop

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coalescer

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

Coalescer merges bursts of same-key main-loop tasks.

func NewCoalescer

func NewCoalescer(post func(func())) *Coalescer

func (*Coalescer) Destroy

func (c *Coalescer) Destroy()

func (*Coalescer) Post

func (c *Coalescer) Post(key string, fn func())

Jump to

Keyboard shortcuts

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