Documentation ¶
Index ¶
- func After(n int, fn any) func(args ...any) []reflect.Value
- func Before(n int, fn any) func(args ...any) []reflect.Value
- func Compose[T any](fnList ...func(...T) T) func(...T) T
- func Debounced(fn func(), duration time.Duration) func()
- func Delay(delay time.Duration, fn any, args ...any)
- func Pipeline[T any](funcs ...func(T) T) func(T) T
- func Schedule(d time.Duration, fn any, args ...any) chan bool
- type CurryFn
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compose ¶
func Compose[T any](fnList ...func(...T) T) func(...T) T
Compose the functions from right to left.
func Debounced ¶
Debounced creates a debounced function that delays invoking fn until after wait duration have elapsed since the last time the debounced function was invoked.
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is used for record code excution time
func (*Watcher) GetElapsedTime ¶
GetElapsedTime get excute elapsed time.
Click to show internal directories.
Click to hide internal directories.