50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

languageserver (version 0.3.10)

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