package xcontext
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/xcontext"
Index ¶
Types ¶
type CancelErrFunc ¶
type CancelErrFunc func(err error)
CancelErrFunc use for cancel with wrap with specific error if err == nil CancelErrFunc will panic for prevent call cancel, then ctx.Err() == nil
func WithErrCancel ¶
func WithErrCancel(ctx context.Context) (resCtx context.Context, cancel CancelErrFunc)
Source Files ¶
- Version
- v3.28.3
- Published
- Jul 14, 2022
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 4 minutes ago –
Tools for package owners.