MCPcopy Index your code
hub / github.com/dagger/dagger / HandlerCtx

Function HandlerCtx

cmd/dagger/shell_exec.go:1080–1088  ·  view source on GitHub ↗

HandlerCtx returns interp.HandlerContext value stored in ctx, or nil if it doesn't have one.

(ctx context.Context)

Source from the content-addressed store, hash-verified

1078// HandlerCtx returns interp.HandlerContext value stored in ctx, or nil if
1079// it doesn't have one.
1080func HandlerCtx(ctx context.Context) (ret *interp.HandlerContext) {
1081 defer func() {
1082 if err := recover(); err != nil {
1083 ret = nil
1084 }
1085 }()
1086 hc := interp.HandlerCtx(ctx)
1087 return &hc
1088}

Callers 2

isUsedMethod · 0.85
PruneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected