JezK
Edit File: execute-c.ri
U:RDoc::AnyMethod[iI"execute:EFI"!Concurrent::Promise::execute;FT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"TCreate a new `Promise` object with the given block, execute it, and return the ;TI"`:pending` object.;To:RDoc::Markup::BlankLine o; ; [I"'@!macro executor_and_deref_options;T@o; ; [I"!@!macro promise_init_options;T@o; ; [I"J@return [Promise] the newly created `Promise` in the `:pending` state;T@o; ; [I"0@raise [ArgumentError] if no block is given;T@o; ; [I" @example;To:RDoc::Markup::Verbatim; [I";promise = Concurrent::Promise.execute{ sleep(1); 42 } ;TI"promise.state #=> :pending;T:@format0: @fileI"lib/concurrent/promise.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(opts = {}, &block);T@#FI"Promise;FcRDoc::NormalClass00