TGViewer
Блог* Блог* @dereference_pointer_there · 1.99K subscribers
Post #10626 1.13K
#prog #rust #article

OnceMap: Rust Pattern for Running Concurrent Work Exactly Once

When multiple tasks need the same resource, how do you ensure the work happens exactly once? uv’s solution is OnceMap - a lightweight concurrent memoization primitive that powers deduplication across the resolver and installer.
Не смотря на то, что код приведён для Rust, подход, судя по всему, можно адаптировать и под другие языки.
  • 🤔 3
  • ❤ 2
More from @dereference_pointer_there
  1. Oct 11, 2026Не пытайтесь
  2. Oct 11, 2026#prog #ml #meme
  3. Oct 11, 2026#meme
  4. Oct 10, 2026#prog #article HTTP is not simple От Daniel Stenberg, автора curl
  5. Oct 10, 2026#article RISC-V: They Should Have Known Better Несколько эмоциональная статья о недостатка…
  6. Oct 9, 2026#prog #rust #meme Было в r/rustjerk, но сначала выложили в r/ClaudeCode
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →