passcall

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Every

func Every[P, R any](passInterval time.Duration, cb func(P) R) func(P) R

Every is a helper function that will call the provided callback function at most once every `passEvery` duration. If the function is called more frequently than that, it will return nil and not call the callback.

Types

This section is empty.

Jump to

Keyboard shortcuts

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