Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
duped
· 1y ago · 0 comments
Return the cached item if it exists else spawn a task to update it (doing nothing if the task has already been spawned), await the task and return the cached item.
Comments
[–]
never_inline
1y ago
Thanks, that's a useful trick.