sync

package module
v0.0.0-...-9a83c78 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package sync is the module root for concurrency helpers: generic caches, semaphores, rate limiters, deduplication of concurrent calls, a typed pool built on the standard library's sync.Pool, and a scheduler for concurrent jobs using cron-style scheduling and crontab parsing. Import subpackages for APIs.

This package exists only for module documentation.

Directories

Path Synopsis
Package cache provides a concurrent-safe generic cache with pluggable eviction policies, optional entry expiration, and a background janitor for cleanup.
Package cache provides a concurrent-safe generic cache with pluggable eviction policies, optional entry expiration, and a background janitor for cleanup.
Package conc provides concurrency primitives for bounding and coordinating goroutine work:
Package conc provides concurrency primitives for bounding and coordinating goroutine work:
Package flight collapses concurrent calls for the same key into a single execution, sharing its result with every caller that asked for it while it was in flight.
Package flight collapses concurrent calls for the same key into a single execution, sharing its result with every caller that asked for it while it was in flight.
Package pool wraps sync.Pool with generics and an optional prepare step run on values before Pool.Get returns them.
Package pool wraps sync.Pool with generics and an optional prepare step run on values before Pool.Get returns them.
Package rate provides rate limiters for controlling the frequency of operations.
Package rate provides rate limiters for controlling the frequency of operations.
Package scheduler runs concurrent jobs with OS signal-aware cancellation, including cron-style scheduling and parsing of traditional crontab specs.
Package scheduler runs concurrent jobs with OS signal-aware cancellation, including cron-style scheduling and parsing of traditional crontab specs.

Jump to

Keyboard shortcuts

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