sing/common/context_compat.go
2023-04-10 12:23:24 +08:00

14 lines
211 B
Go

//go:build go1.20
package common
import "context"
type (
ContextCancelCauseFunc = context.CancelCauseFunc
)
var (
ContextWithCancelCause = context.WithCancelCause
ContextCause = context.Cause
)