JezK
Edit File: execute-c.ri
U:RDoc::AnyMethod[iI"execute:EFI" Concurrent::Future::execute;FT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"SCreate a new `Future` object with the given block, execute it, and return the ;TI"`:pending` object.;To:RDoc::Markup::BlankLine o; ; [I"1@yield the asynchronous operation to perform;T@o; ; [I"'@!macro executor_and_deref_options;T@o; ; [I"T@option opts [object, Array] :args zero or more arguments to be passed the task;To:RDoc::Markup::Verbatim; [I"block on execution ;T:@format0o; ; [I"0@raise [ArgumentError] if no block is given;T@o; ; [I"H@return [Future] the newly created `Future` in the `:pending` state;T@o; ; [I" @example;To;; [I"9future = Concurrent::Future.execute{ sleep(1); 42 } ;TI"future.state #=> :pending;T; 0: @fileI"lib/concurrent/future.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(opts = {}, &block);T@)FI"Future;FcRDoc::NormalClass00