/function-decorators

Functions which add behavior to the passed in functions.

Primary LanguageJava

function-decorators

Functions which add slight behavior to the passed in functions.


once - makes a function execute only once.

after - makes a function execute after the function invocation count is greater than the specified number.

throttle - regulate the rate at which the function is executed.

Ideas borrowed from this article