MCPcopy Create free account
hub / github.com/rilldata/rill / contextWithInvocation

Function contextWithInvocation

runtime/controller.go:1604–1606  ·  view source on GitHub ↗

contextWithInvocation returns a wrapped context that contains an invocation.

(ctx context.Context, inv *invocation)

Source from the content-addressed store, hash-verified

1602
1603// contextWithInvocation returns a wrapped context that contains an invocation.
1604func contextWithInvocation(ctx context.Context, inv *invocation) context.Context {
1605 return context.WithValue(ctx, invocationCtxKey{}, inv)
1606}
1607
1608// invocationFromContext retrieves an invocation from a context.
1609// If no invocation is in the context, it returns nil.

Callers 1

invokeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected