File: //usr/local/rvm/gems/ruby-2.5.9/doc/concurrent-ruby-1.1.9/ri/Concurrent/Agent/restart-i.ri
U:RDoc::AnyMethod[iI"restart:ETI"Concurrent::Agent#restart;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"LWhen an Agent is {#failed?}, changes the Agent {#value} to `new_value` ;TI"Mthen un-fails the Agent so that action dispatches are allowed again. If ;TI"Mthe `:clear_actions` option is give and true, any actions queued on the ;TI"GAgent that were being held while it was failed will be discarded, ;TI"Notherwise those held actions will proceed. The `new_value` must pass the ;TI"Ovalidator if any, or `restart` will raise an exception and the Agent will ;TI"Oremain failed with its old {#value} and {#error}. Observers, if any, will ;TI"¬ be notified of the new state.;To:RDoc::Markup::BlankLine o;
; [I"J@param [Object] new_value the new value for the Agent once restarted ;TI"2@param [Hash] opts the configuration options ;TI"N@option opts [Symbol] :clear_actions true if all enqueued but unprocessed;To:RDoc::Markup::Verbatim; [I"Iactions should be discarded on restart, else false (default: false)
;T:@format0o;
; [I"@return [Boolean] true;T@o;
; [I"3@raise [Concurrent:AgentError] when not failed;T:
@fileI",lib/concurrent-ruby/concurrent/agent.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(new_value, opts = {});T@$FI"
Agent;TcRDoc::NormalClass00