3 ms·
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 it
by duped 11mo ago
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 11mo agoThanks, that's a useful trick.