Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
whalesalad
6y ago
0 comments
Save
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
1 comments · 1 top-level
top
newest
oldest
faceplanted
6y 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