File: //usr/local/rvm/gems/ruby-3.0.2/doc/concurrent-ruby-1.1.9/ri/Concurrent/Future/execute-i.ri
U:RDoc::AnyMethod[iI"execute:ETI"Concurrent::Future#execute;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"VExecute an `:unscheduled` `Future`. Immediately sets the state to `:pending` and ;TI"Jpasses the block to a new thread/thread pool for eventual execution. ;TI"LDoes nothing if the `Future` is in any state other than `:unscheduled`.;To:RDoc::Markup::BlankLine o;
; [I"+@return [Future] a reference to `self`;T@o;
; [I"4@example Instance and execute in separate steps;To:RDoc::Markup::Verbatim; [ I"5future = Concurrent::Future.new{ sleep(1); 42 }
;TI"#future.state #=> :unscheduled
;TI"future.execute
;TI"future.state #=> :pending
;T:@format0o;
; [I".@example Instance and execute in one line;To;; [I"=future = Concurrent::Future.new{ sleep(1); 42 }.execute
;TI"future.state #=> :pending;T;
0:
@fileI"-lib/concurrent-ruby/concurrent/future.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@$FI"Future;TcRDoc::NormalClass00