toolkit.whenQuiet {shinylight} | R Documentation |
JavaScript function: Transforms a function that should not be called too often into a function that can be called as often as you like.
Description
The returned function can be called as often as you like with
whatever arguments you like. If it is called again within
ticks
ticks (a tick is 100ms), this call is ignored. If
it is not called again within this time, the arguments are passed
on to the delegate function. In other words, in a string of calls
less than ticks
x 100ms apart from each other, only
the last of these calls actually happens.
Arguments
ticks |
|
f |
|
Value
Function that can be called often, resulting in fewer
calls to the delegate function f
.
[Package shinylight version 1.2 Index]