Y
Hacker News
new
|
ask
|
show
|
jobs
by
whalesalad
2186 days ago
Essentially the OP is using the decorator to prevent the function call from ever being run more than one time. It’s at most once.
1 comments
faceplanted
2185 days ago
More specifically, it prevents a call being repeated _in quick succession_, if there are enough calls in between repetitions it'll fall out of the cache and be reprocessed.
link