Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby33 /
share /
ri /
system /
Ractor /
Delete
Unzip
Name
Size
Permission
Date
Action
ClosedError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Error
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
IsolationError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
MovedError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
MovedObject
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
RemoteError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Selector
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
UnsafeError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
%3c%3c-i.ri
246
B
-rw-r--r--
2026-04-07 17:22
%5b%5d%3d-i.ri
298
B
-rw-r--r--
2026-04-07 17:22
%5b%5d-i.ri
293
B
-rw-r--r--
2026-04-07 17:22
cdesc-Ractor.ri
11.5
KB
-rw-r--r--
2026-04-07 17:22
close_incoming-i.ri
768
B
-rw-r--r--
2026-04-07 17:22
close_outgoing-i.ri
760
B
-rw-r--r--
2026-04-07 17:22
count-c.ri
741
B
-rw-r--r--
2026-04-07 17:22
current-c.ri
416
B
-rw-r--r--
2026-04-07 17:22
inspect-i.ri
253
B
-rw-r--r--
2026-04-07 17:22
main-c.ri
277
B
-rw-r--r--
2026-04-07 17:22
make_shareable-c.ri
1.66
KB
-rw-r--r--
2026-04-07 17:22
name-i.ri
294
B
-rw-r--r--
2026-04-07 17:22
new-c.ri
1.47
KB
-rw-r--r--
2026-04-07 17:22
receive-c.ri
1.88
KB
-rw-r--r--
2026-04-07 17:22
receive-i.ri
313
B
-rw-r--r--
2026-04-07 17:22
receive_if-c.ri
2.26
KB
-rw-r--r--
2026-04-07 17:22
receive_if-i.ri
296
B
-rw-r--r--
2026-04-07 17:22
recv-c.ri
238
B
-rw-r--r--
2026-04-07 17:22
recv-i.ri
237
B
-rw-r--r--
2026-04-07 17:22
select-c.ri
2.16
KB
-rw-r--r--
2026-04-07 17:22
send-i.ri
3.01
KB
-rw-r--r--
2026-04-07 17:22
shareable%3f-c.ri
794
B
-rw-r--r--
2026-04-07 17:22
take-i.ri
2.36
KB
-rw-r--r--
2026-04-07 17:22
to_s-i.ri
237
B
-rw-r--r--
2026-04-07 17:22
yield-c.ri
1.33
KB
-rw-r--r--
2026-04-07 17:22
Save
Rename
U:RDoc::AnyMethod[iI" take:ETI"Ractor#take;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"gGet a message from the ractor's outgoing port, which was put there by Ractor.yield or at ractor's ;TI"termination.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"r = Ractor.new do ;TI"% Ractor.yield 'explicit yield' ;TI" 'last value' ;TI" end ;TI"&puts r.take #=> 'explicit yield' ;TI""puts r.take #=> 'last value' ;TI"Mputs r.take # Ractor::ClosedError (The outgoing-port is already closed) ;T:@format0o; ; [I"bThe fact that the last value is also sent to the outgoing port means that +take+ can be used ;TI"`as an analog of Thread#join ("just wait until ractor finishes"). However, it will raise if ;TI"0somebody has already consumed that message.;T@o; ; [I"eIf the outgoing port was closed with #close_outgoing, the method will raise Ractor::ClosedError.;T@o;; [ I"r = Ractor.new do ;TI" sleep(500) ;TI"( Ractor.yield 'Hello from ractor' ;TI" end ;TI"r.close_outgoing ;TI"r.take ;TI"A# Ractor::ClosedError (The outgoing-port is already closed) ;TI"R# The error would be raised immediately, not when ractor will try to receive ;T; 0o; ; [I"UIf an uncaught exception is raised in the Ractor, it is propagated by take as a ;TI"Ractor::RemoteError.;T@o;; [I"7r = Ractor.new {raise "Something weird happened"} ;TI" ;TI"begin ;TI" r.take ;TI"rescue => e ;TI"O p e # => #<Ractor::RemoteError: thrown by remote Ractor.> ;TI"" p e.ractor == r # => true ;TI"G p e.cause # => #<RuntimeError: Something weird happened> ;TI" end ;T; 0o; ; [I"gRactor::ClosedError is a descendant of StopIteration, so the termination of the ractor will break ;TI"Nout of any loops that receive this message without propagating the error:;T@o;; [I"r = Ractor.new do ;TI"1 3.times {|i| Ractor.yield "message #{i}"} ;TI" "finishing" ;TI" end ;TI" ;TI"'loop {puts "Received: " + r.take} ;TI""puts "Continue successfully" ;T; 0o; ; [I"This will print:;T@o;; [ I"Received: message 0 ;TI"Received: message 1 ;TI"Received: message 2 ;TI"Received: finishing ;TI"Continue successfully;T; 0: @fileI"ractor.rb;T:0@omit_headings_from_table_of_contents_below0I"ractor.take -> msg ;T0[ I"();T@QFI"Ractor;TcRDoc::NormalClass00