Follow

I wrote this and it was correct on the first try:

cache_locks.lock().unwrap().entry(url.clone()).or_default().clone()

I deserve a cookie.

· · Web · 0 · 0 · 8
Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!