JezK
Edit File: cdesc-LazyRegister.ri
U:RDoc::NormalClass[iI"LazyRegister:EFI"Concurrent::LazyRegister;FI"Synchronization::Object;To:RDoc::Markup::Document:@parts[o;;[ o:RDoc::Markup::Paragraph;[I"<Hash-like collection that store lazys evaluated values.;To:RDoc::Markup::BlankLine o; ;[I" @example;To:RDoc::Markup::Verbatim;[ I"-register = Concurrent::LazyRegister.new ;TI"l#=> #<Concurrent::LazyRegister:0x007fd7ecd5e230 @Data=#<Concurrent::AtomicReference:0x007fd7ecd5e1e0>> ;TI"register[:key] ;TI" #=> nil ;TI"eregister.add(:key) { Concurrent::Actor.spawn!(Actor::AdHoc, :ping) { -> message { message } } } ;TI"l#=> #<Concurrent::LazyRegister:0x007fd7ecd5e230 @Data=#<Concurrent::AtomicReference:0x007fd7ecd5e1e0>> ;TI"register[:key] ;TI"J#=> #<Concurrent::Actor::Reference /ping (Concurrent::Actor::AdHoc)> ;T:@format0o; ;[I"@!macro edge_warning;T: @fileI"$lib/concurrent/lazy_register.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[[I"new;TI"$lib/concurrent/lazy_register.rb;T[:protected[ [:private[ [I" instance;T[[;[[I"[];F@.[I"add;T@.[I"delete;T@.[I" has_key?;T@.[I" key?;T@.[I" register;F@.[I"registered?;F@.[I"remove;T@.[I" store;T@.[I"unregister;F@.[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@"I"Concurrent;FcRDoc::NormalModule