module IO::Evented

Defined in:

io/evented.cr

Instance Method Summary

Instance Method Detail

def evented_close : Nil #

[View source]
def evented_read(slice : Bytes, errno_msg : String, &) : Int32 #

[View source]
def evented_reopen : Nil #

[View source]
def evented_send(slice : Bytes, errno_msg : String, &) : Int32 #

[View source]
def evented_write(slice : Bytes, errno_msg : String, &) : Nil #

[View source]
def read_timeout : Time::Span | Nil #

Returns the time to wait when reading before raising an IO::TimeoutError.


[View source]
def read_timeout=(read_timeout : Number) : Number #

Sets the number of seconds to wait when reading before raising an IO::TimeoutError.


[View source]
def read_timeout=(timeout : Time::Span | Nil) : Time::Span | Nil #

Sets the time to wait when reading before raising an IO::TimeoutError.


[View source]
def write_timeout : Time::Span | Nil #

Returns the time to wait when writing before raising an IO::TimeoutError.


[View source]
def write_timeout=(write_timeout : Number) : Number #

Sets the number of seconds to wait when writing before raising an IO::TimeoutError.


[View source]
def write_timeout=(timeout : Time::Span | Nil) : Time::Span | Nil #

Sets the time to wait when writing before raising an IO::TimeoutError.


[View source]