JezK
Edit File: add_observer-i.ri
U:RDoc::AnyMethod[iI"add_observer:EFI""Concurrent::IVar#add_observer;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"MAdd an observer on this object that will receive notification on update.;To:RDoc::Markup::BlankLine o; ; [ I"PUpon completion the `IVar` will notify all observers in a thread-safe way. ;TI"PThe `func` method of the observer will be called with three arguments: the ;TI"L`Time` at which the `Future` completed the asynchronous operation, the ;TI"Pfinal `value` (or `nil` on rejection), and the final `reason` (or `nil` on ;TI"fulfillment).;T@o; ; [I"J@param [Object] observer the object that will be notified of changes ;TI"D@param [Symbol] func symbol naming the method to call when this;To:RDoc::Markup::Verbatim; [I"`Observable` has changes`;T:@format0: @fileI"lib/concurrent/ivar.rb;T:0@omit_headings_from_table_of_contents_below000[ I"-(observer = nil, func = :update, &block);T@FI" IVar;FcRDoc::NormalClass00