Documentation ¶
Index ¶
- func Handle(f func())
- func HandleErr(f func() error) error
- func HandleV[V any](v V, f func(v V))
- func If[T any](expression bool, t T, f T) T
- func Retry(count int, interval time.Duration, f func() error) error
- func RetryAsync(count int, interval time.Duration, f func() error, callback func(err error))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleV ¶ added in v0.0.8
func HandleV[V any](v V, f func(v V))
HandleV 执行 f 函数,如果 f 为 nil,则不执行
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.