Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
duped
44 days ago
|
parent
|
context
|
favorite
| on:
Async Mutexes
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.
never_inline
44 days ago
[–]
Thanks, that's a useful trick.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: