Documentation
¶
Overview ¶
Package sync is the module root for concurrency helpers: generic caches, semaphores, rate limiters, 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 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. |
Click to show internal directories.
Click to hide internal directories.