JezK
Edit File: safe_initialization%21-c.ri
U:RDoc::AnyMethod[iI"safe_initialization!:EFI">Concurrent::Synchronization::Object::safe_initialization!;FT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"rBy calling this method on a class, it and all its children are marked to be constructed safely. Meaning that ;TI"oall writes (ivar initializations) are made visible to all readers of newly constructed object. It ensures ;TI",same behaviour as Java's final fields. ;TI" @example;To:RDoc::Markup::Verbatim; [I"8class AClass < Concurrent::Synchronization::Object ;TI" safe_initialization! ;TI" ;TI" def initialize ;TI"U @AFinalValue = 'value' # published safely, does not have to be synchronized ;TI" end ;TI"end;T:@format0: @fileI"-lib/concurrent/synchronization/object.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@FI"Object;FcRDoc::NormalClass00