package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Apr 28, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package wrap supplies Job decorators.
DelayIfRunning serialises invocations; queued callers observe ctx
cancellation.
Recover converts Job panics into errors and logs the stack.
Retry is shorthand for p.Wrapper().
SkipIfRunning drops overlapping invocations.
Timeout attaches a deadline with cron.ErrJobTimeout as the cancellation
cause. Non-positive durations are a no-op.
type Option func(*config)
WithLogger sets the slog.Logger used by Recover. Default slog.Default().
Source Files
¶
Click to show internal directories.
Click to hide internal directories.