JezK
Edit File: try_update-i.ri
U:RDoc::AnyMethod[iI"try_update:EFI".Concurrent::AtomicDirectUpdate#try_update;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"8@!macro [attach] atomic_reference_method_try_update;To:RDoc::Markup::BlankLine o; ; [I"=Pass the current value to the given block, replacing it ;TI"=with the block's result. Return nil if the update fails.;T@o; ; [I"I@yield [Object] Calculate a new value for the atomic reference using;To:RDoc::Markup::Verbatim; [I"given (old) value ;T:@format0o; ; [I"N@yieldparam [Object] old_value the starting value of the atomic reference;T@o; ; [I"M@note This method was altered to avoid raising an exception by default. ;TI"OInstead, this method now returns `nil` in case of failure. For more info, ;TI"Mplease see: https://github.com/ruby-concurrency/concurrent-ruby/pull/336;T@o; ; [I"<@return [Object] the new value, or nil if update failed;T: @fileI"5lib/concurrent/atomic_reference/direct_update.rb;T:0@omit_headings_from_table_of_contents_below00I"old_value;T[ I"();T@$FI"AtomicDirectUpdate;FcRDoc::NormalModule00