W3cubDocs

/Crystal 0.31

module IO::Evented

Direct including types

Defined in:

io/evented.cr

Instance Method Summary

Instance Method Detail

def evented_closeSource

def evented_read(slice : Bytes, errno_msg : String, &block) : Int32Source

def evented_reopenSource

def evented_send(slice : Bytes, errno_msg : String, &block) : Int32Source

def evented_write(slice : Bytes, errno_msg : String, &block) : NilSource

def read_timeout : Time::Span?Source

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

def read_timeout=(read_timeout : Number) : NumberSource

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

def read_timeout=(timeout : Time::Span?) : Time::Span?Source

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

def write_timeout : Time::Span?Source

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

def write_timeout=(write_timeout : Number) : NumberSource

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

def write_timeout=(timeout : Time::Span?) : Time::Span?Source

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

© 2012–2019 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.31.1/IO/Evented.html