Documentation
¶
Index ¶
- func Distinct[T comparable](src []T) []T
- func GoRecover(ctx context.Context, fn func(ctx context.Context))
- func Recover(ctx context.Context)
- func SliceToStrings[T any](items []T) []string
- func SortedDifference[T constraints.Ordered](base, exclude []T) []T
- func TimeoutNoDeadline(parent context.Context, d time.Duration) (context.Context, context.CancelFunc)
- func WaitOrCtx(ctx context.Context, wait time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Distinct ¶
func Distinct[T comparable](src []T) []T
func SliceToStrings ¶
func SortedDifference ¶
func SortedDifference[T constraints.Ordered](base, exclude []T) []T
func TimeoutNoDeadline ¶
func TimeoutNoDeadline(parent context.Context, d time.Duration) (context.Context, context.CancelFunc)
TimeoutNoDeadline прячем дедлайн с помощью noDeadlineCtx, чтобы драйвер не добавлял SET max_execution_time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.