package xcontext

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/xcontext"

Index

Functions

func IsIdempotent

func IsIdempotent(ctx context.Context) bool

func WithIdempotent

func WithIdempotent(ctx context.Context, idempotent bool) context.Context

func WithoutDeadline

func WithoutDeadline(ctx context.Context) context.Context

WithoutDeadline helps to clear derived deadline from deadline

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

cancel_with_error.go idempotent.go without_deadline.go

Version
v3.42.6-rc0
Published
Jan 18, 2023
Platform
windows/amd64
Imports
6 packages
Last checked
1 second ago

Tools for package owners.