func WithPoolPollInterval(d time.Duration) WorkerPoolOption {
	return func(w *WorkerPool) {
		w.interval = d
	}
}
WithPoolPollInterval overrides default poll interval with the given value.
Poll interval is the "sleep" duration if there were no jobs found in the DB.
package gue
import (
	"time"
	"github.com/vgarvardt/gue/v3/adapter"
)
type WorkerOption func(*Worker)
type WorkerPoolOption func(pool *WorkerPool)
func WithWorkerPollInterval(d time.Duration) WorkerOption {
	return func(w *Worker) {
		w.interval = d
	}
}
func WithWorkerQueue(queue string) WorkerOption {
	return func(w *Worker) {
		w.queue = queue
	}
}
func WithWorkerID(id string) WorkerOption {
	return func(w *Worker) {
		w.id = id
	}
}
func WithWorkerLogger(logger adapter.Logger) WorkerOption {
	return func(w *Worker) {
		w.logger = logger
	}
}
func WithWorkerPollStrategy(s PollStrategy) WorkerOption {
	return func(w *Worker) {
		w.pollStrategy = s
	}
}