templates

command
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package main demonstrates basic go-task-runner setup with global thread pool

Package main demonstrates the EventBus — type-safe, lock-free publish/subscribe built on SequencedTaskRunner.

Package main demonstrates JobManager with MemoryJobStore. Swap MemoryJobStore for SQLiteJobStore to get persistence and crash recovery.

Package main demonstrates lock-free state management with SequencedTaskRunner This pattern eliminates the need for mutexes by using sequential execution guarantees

Package main demonstrates ParallelTaskRunner for controlled parallelism Use this when you need to run multiple tasks concurrently with a maximum limit

Package main demonstrates SequencedTaskRunner basic usage SequencedTaskRunner guarantees FIFO execution - perfect for lock-free patterns

Package main demonstrates SingleThreadTaskRunner for thread affinity Use this when you need all tasks on the SAME goroutine (blocking IO, CGO, etc.)

Package main demonstrates Task and Reply pattern for UI/Background work This pattern cleanly separates heavy computation from UI updates

Jump to

Keyboard shortcuts

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