Documentation ¶
Index ¶
- Constants
- func CancelAfter(ctx context.Context) (d time.Duration, ok bool)
- func Params(ctx context.Context, timeout time.Duration, cancelAfter time.Duration, ...) *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
- type Status
Constants ¶
View Source
const ( Finished = Status(iota) Undefined // may be true or may be false NotFinished )
Binary flags that used as Status
Variables ¶
This section is empty.
Functions ¶
func CancelAfter ¶ added in v3.18.0
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 ¶ added in v3.18.0
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.
Types ¶
Click to show internal directories.
Click to hide internal directories.