timex

package
v0.0.0-...-b5254e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debounce

func Debounce(after time.Duration) func(f func())

Debounce returns a debounced function that takes another functions as its argument. This function will be called when the debounced function stops being called for the given duration. The debounced function can be invoked with different functions, if needed, the last one will win.

func Parse

func Parse(str string) time.Time

func SetIntervals

func SetIntervals(fn func(stop func()), tick time.Duration) func()

func Throttler

func Throttler(after time.Duration) func(func())

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL