MCPcopy
hub / github.com/cortesi/devd / NewContext

Method NewContext

timer/timer.go:51–53  ·  view source on GitHub ↗

NewContext creates a new context with the timer included

(ctx context.Context)

Source from the content-addressed store, hash-verified

49
50// NewContext creates a new context with the timer included
51func (t *Timer) NewContext(ctx context.Context) context.Context {
52 return context.WithValue(ctx, "timer", t)
53}
54
55// FromContext creates a new context with the timer included
56func FromContext(ctx context.Context) *Timer {

Callers 1

WrapHandlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected