HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/Ractor/yield-c.ri
U:RDoc::AnyMethod[iI"
yield:ETI"Ractor::yield;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"RSend a message to the current ractor's outgoing port to be consumed by #take.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"7r = Ractor.new {Ractor.yield 'Hello from ractor'}
;TI"puts r.take
;TI"## Prints: "Hello from ractor"
;T:@format0o;
;	[I"MThe method is blocking, and will return only when somebody consumes the ;TI"sent message.;T@o;;	[I"r = Ractor.new do
;TI"(  Ractor.yield 'Hello from ractor'
;TI""  puts "Ractor: after yield"
;TI"	end
;TI"
wait
;TI"puts "Still not taken"
;TI"puts r.take
;T;
0o;
;	[I"This will print:;T@o;;	[I"Still not taken
;TI"Hello from ractor
;TI"Ractor: after yield
;T;
0o;
;	[I"QIf the outgoing port was closed with #close_outgoing, the method will raise:;T@o;;	[I"r = Ractor.new do
;TI"  close_outgoing
;TI"(  Ractor.yield 'Hello from ractor'
;TI"	end
;TI"
wait
;TI"J# `yield': The outgoing-port is already closed (Ractor::ClosedError)
;T;
0o;
;	[I"=The meaning of +move+ argument is the same as for #send.;T:
@fileI"ractor.rb;T:0@omit_headings_from_table_of_contents_below0I"+Ractor.yield(msg, move: false) -> nil
;T0[I"(obj, move: false);T@7FI"Ractor;TcRDoc::NormalClass00