D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Fiber
/
Scheduler
/
Filename :
fiber-i.ri
back
Copy
U:RDoc::AnyMethod[iI" fiber:ETI"Fiber::Scheduler#fiber;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"ZImplementation of the Fiber.schedule. The method is <em>expected</em> to immediately ;TI"\run the given block of code in a separate non-blocking fiber, and to return that Fiber.;To:RDoc::Markup::BlankLine o; ; [I")Minimal suggested implementation is:;T@o:RDoc::Markup::Verbatim; [ I"def fiber(&block) ;TI"2 fiber = Fiber.new(blocking: false, &block) ;TI" fiber.resume ;TI" fiber ;TI"end;T:@format0: @fileI"scheduler.c;T:0@omit_headings_from_table_of_contents_below0I"fiber(&block) ;T0[ I"(*args);T@FI"Scheduler;TcRDoc::NormalClass00