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

Function resumableStateFromContext

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

Source from the content-addressed store, hash-verified

170}
171
172func resumableStateFromContext(ctx context.Context) (*rivermiddleware.ResumableState, bool) {
173 state := ctx.Value(rivermiddleware.ResumableContextKey{})
174 if state == nil {
175 return nil, false
176 }
177
178 typedState, ok := state.(*rivermiddleware.ResumableState)
179 if !ok || typedState == nil {
180 return nil, false
181 }
182
183 return typedState, true
184}

Callers 2

resumableSetStepTxFunction · 0.85
mustResumableStateFunction · 0.85

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…