MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.153
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Fiber/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Fiber/transfer-i.ri
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::BlankLineo;
;	[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

MMCT - 2023