JezK
Edit File: fetch-i.ri
U:RDoc::AnyMethod[iI" fetch:EFI"Concurrent::Map#fetch;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"+@!macro [attach] map_method_not_atomic;To:RDoc::Markup::Verbatim; [ I"MThe "fetch-then-act" methods of `Map` are not atomic. `Map` is intended ;TI"Eto be use as a concurrency primitive with strong happens-before ;TI"Kguarantees. It is not intended to be used as a high-level abstraction ;TI"Fsupporting complex operations. All read and write operations are ;TI"Gthread safe, but no guarantees are made regarding race conditions ;TI"Jbetween the fetch operation and yielding to the block. Additionally, ;TI"Ethis method does not support recursion. This is due to internal ;TI"Econstraints that are very unlikely to change in the near future.;T:@format0: @fileI"lib/concurrent/map.rb;T:0@omit_headings_from_table_of_contents_below00I"key;T[ I" (key, default_value = NULL);T@FI"Map;FcRDoc::NormalClass00