Invoked to wake up Fiber
previously blocked with block
(for example, Mutex#lock calls block
and Mutex#unlock calls unblock
). The scheduler should use the fiber
parameter to understand which fiber is unblocked.
blocker
is what was awaited for, but it is informational only (for debugging and logging), and it is not guaranteed to be the same value as the blocker
for block
.
Like Enumerable#chunk
, but chains operation to be lazy-evaluated.
Releases all internal structural references for this engine.
May raise an EngineError
if the engine is unavailable
Tokenize string
returning the Ruby object
Get the output style, canonical or not.
Set
the output style to canonical, or not.
Calls String#unpack
on sockopt.data.
sockopt = Socket::Option.new(:INET, :SOCKET, :KEEPALIVE, [1].pack("i")) p sockopt.unpack("i") #=> [1] p sockopt.data.unpack("i") #=> [1]
Logs a message
at the unknown (syslog alert) log level, or logs the message returned from the block.
Returns true if the stream is finished.
Finishes the stream and flushes output buffer. If a block is given each chunk is yielded to the block until the input buffer has been flushed to the output buffer.
Closes the GzipFile
object. Unlike Zlib::GzipFile#close
, this method never calls the close method of the associated IO
object. Returns the associated IO
object.
Returns the rest of the data which had read for parsing gzip format, or nil
if the whole gzip file is not parsed yet.
See Zlib::GzipReader
documentation for a description.
See Zlib::GzipReader
documentation for a description.
Starts the DRb
main loop in a new thread.
Finishes the HTTP
session and closes the TCP connection. Raises IOError
if the session has not been started.
Sends a UNLOCK request to the path
and gets a response, as an HTTPResponse
object.
Computation