Versions in this module Expand all Collapse all v0 v0.0.3 Dec 1, 2023 Changes in this version + var ErrClosed = errors.New("queue closed") + var ErrStackFull = errors.New("stack is full") + var ErrTimeout = errors.New("timeout") + type HTTPOptions struct + StackFullStatusCode int + TimeoutStatusCode int + type Handler struct + func NewHandler(o HTTPOptions, h http.Handler) *Handler + func (h *Handler) Close() + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Options struct + CloseTimeout time.Duration + MaxConcurrency int + MaxStackSize int + Timeout time.Duration + type Stack struct + func New() *Stack + func With(o Options) *Stack + func (s *Stack) Close() + func (s *Stack) CloseForced() + func (s *Stack) Do(job func()) error + func (s *Stack) Reconfigure(o Options) error + func (s *Stack) Status() Status + func (s *Stack) Wait() (done func(), err error) + type Status struct + ActiveJobs int + Closed bool + Closing bool + QueuedJobs int