Source File
context.go
Belonging Package
github.com/jackc/puddle/v2
package puddleimport ()// valueCancelCtx combines two contexts into one. One context is used for values and the other is used for cancellation.type valueCancelCtx struct {valueCtx context.ContextcancelCtx context.Context}func ( *valueCancelCtx) () (time.Time, bool) { return .cancelCtx.Deadline() }func ( *valueCancelCtx) () <-chan struct{} { return .cancelCtx.Done() }func ( *valueCancelCtx) () error { return .cancelCtx.Err() }func ( *valueCancelCtx) ( any) any { return .valueCtx.Value() }func (, context.Context) context.Context {return &valueCancelCtx{valueCtx: ,cancelCtx: ,}}
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)