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

Function mustResumableState

resumable.go:153–160  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

151}
152
153func mustResumableState(ctx context.Context) *rivermiddleware.ResumableState {
154 state, ok := resumableStateFromContext(ctx)
155 if !ok {
156 panic(errResumableStepNotInWorker)
157 }
158
159 return state
160}
161
162func registerResumableStepName(state *rivermiddleware.ResumableState, name string) bool {
163 if _, ok := state.AllStepNames[name]; ok {

Callers 3

ResumableSetCursorFunction · 0.85
ResumableStepFunction · 0.85
ResumableStepCursorFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…