Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


languageserver (version 0.3.0)

throttle: throttle a function execution

Description

Execute a function if the last execution time is older than a specified value.

Usage

throttle(fun, t = 1)

Arguments

fun

the function to execute

t

an integer, the threshold in seconds