JezK
Edit File: execute-i.ri
U:RDoc::AnyMethod[iI"execute:EFI"Concurrent::Future#execute;FF: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/future.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@$FI"Future;FcRDoc::NormalClass00