Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
whalesalad
5y ago
0 comments
Share
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.
0 comments
default
newest
oldest
faceplanted
5y 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.
j
/
k
navigate · click thread line to collapse