MCPcopy Index your code
hub / github.com/riverqueue/river / Work

Method Work

work_unit_wrapper.go:39–39  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

37func (w *wrapperWorkUnit[T]) NextRetry() time.Time { return w.worker.NextRetry(w.job) }
38func (w *wrapperWorkUnit[T]) Timeout() time.Duration { return w.worker.Timeout(w.job) }
39func (w *wrapperWorkUnit[T]) Work(ctx context.Context) error { return w.worker.Work(ctx, w.job) }
40
41func (w *wrapperWorkUnit[T]) UnmarshalJob() error {
42 w.job = &Job[T]{

Callers

nothing calls this directly

Calls 1

WorkMethod · 0.65

Tested by

no test coverage detected