| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Fiber/ |
Upload File : |
U:RDoc::AnyMethod[iI" transfer:ETI"Fiber#transfer;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"GTransfer control to another fiber, resuming it from where it last ;TI"Fstopped or starting it if it was not resumed before. The calling ;TI"4fiber will be suspended much like in a call to ;TI"H<code>Fiber.yield</code>. You need to <code>require 'fiber'</code> ;TI"before using this method.;To:RDoc::Markup::BlankLine o; ; [I"GThe fiber which receives the transfer call is treats it much like ;TI"Ha resume call. Arguments passed to transfer are treated like those ;TI"passed to resume.;T@o; ; [I"HYou cannot resume a fiber that transferred control to another one. ;TI"IThis will cause a double resume error. You need to transfer control ;TI"7back to this fiber before it can yield and resume.;T@o; ; [I" Example:;T@o:RDoc::Markup::Verbatim; [I"fiber1 = Fiber.new do ;TI" puts "In Fiber 1" ;TI" Fiber.yield ;TI" end ;TI" ;TI"fiber2 = Fiber.new do ;TI" puts "In Fiber 2" ;TI" fiber1.transfer ;TI"% puts "Never see this message" ;TI" end ;TI" ;TI"fiber3 = Fiber.new do ;TI" puts "In Fiber 3" ;TI" end ;TI" ;TI"fiber2.resume ;TI"fiber3.resume ;T:@format0o; ; [I"<em>produces</em>;T@o;; [I"In fiber 2 ;TI"In fiber 1 ;TI"In fiber 3;T; 0: @fileI"cont.c;T:0@omit_headings_from_table_of_contents_below0I"&fiber.transfer(args, ...) -> obj ;T0[ I"(*args);T@;FI" Fiber;TcRDoc::NormalClass00