HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.5.9/doc/concurrent-ruby-1.1.9/ri/Concurrent/Map/fetch-i.ri
U:RDoc::AnyMethod[iI"
fetch:ETI"Concurrent::Map#fetch;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"@Get a value with key, or default_value when key is absent, ;TI"-or fail when no default_value is given. ;TI"@param [Object] key ;TI"#@param [Object] default_value ;TI"$@yield default value for a key ;TI"@yieldparam key [Object] ;TI")@yieldreturn [Object] default value ;TI"1@return [Object] the value or default value ;TI"L@raise [KeyError] when key is missing and no default_value is provided ;TI""@!macro map_method_not_atomic;To:RDoc::Markup::Verbatim;	[
I"S@note The "fetch-then-act" methods of `Map` are not atomic. `Map` is intended
;TI"G  to be use as a concurrency primitive with strong happens-before
;TI"M  guarantees. It is not intended to be used as a high-level abstraction
;TI"H  supporting complex operations. All read and write operations are
;TI"I  thread safe, but no guarantees are made regarding race conditions
;TI"L  between the fetch operation and yielding to the block. Additionally,
;TI"G  this method does not support recursion. This is due to internal
;TI"G  constraints that are very unlikely to change in the near future.;T:@format0:
@fileI"*lib/concurrent-ruby/concurrent/map.rb;T:0@omit_headings_from_table_of_contents_below00I"key;T[I" (key, default_value = NULL);T@!FI"Map;TcRDoc::NormalClass00