package operation
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/operation"
Index ¶
- func CancelAfter(ctx context.Context) (d time.Duration, ok bool)
- func Params( ctx context.Context, timeout time.Duration, cancelAfter time.Duration, mode Mode, ) *Ydb_Operations.OperationParams
- func Timeout(ctx context.Context) (d time.Duration, ok bool)
- func WithCancelAfter(ctx context.Context, operationCancelAfter time.Duration) context.Context
- func WithTimeout(ctx context.Context, operationTimeout time.Duration) context.Context
- type Mode
Functions ¶
func CancelAfter ¶
CancelAfter returns the timeout within given context after which YDB should try to cancel operation and return result regardless of the cancellation.
func Params ¶
func Params( ctx context.Context, timeout time.Duration, cancelAfter time.Duration, mode Mode, ) *Ydb_Operations.OperationParams
func Timeout ¶
Timeout returns the timeout within given context after which YDB should try to cancel operation and return result regardless of the cancelation.
func WithCancelAfter ¶
WithCancelAfter returns a copy of parent context in which YDB operation cancel after parameter is set to d. If parent context cancellation timeout is smaller than d, parent context is returned.
func WithTimeout ¶
WithTimeout returns a copy of parent context in which YDB operation timeout parameter is set to d. If parent context timeout is smaller than d, parent context is returned.
Types ¶
type Mode ¶
type Mode uint
func (Mode) String ¶
Source Files ¶
context.go mode.go params.go timeout.go
- Version
- v3.18.5
- Published
- Apr 7, 2022
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 6 minutes ago –
Tools for package owners.