Crystal::EventLoop::Polling::Event
Inherits Crystal::PointerPairingHeap::Node / Crystal::PointerLinkedList::Node / Struct / Value / Object
Information about the event that a Fiber is waiting on.
The event can be waiting for IO with or without a timeout, or be a timed
event such as sleep or a select timeout (without IO).
The events can be found in different queues, for example Timers and/or
Waiters depending on their type.
Constructors
Instance methods
Compare self with other. For example:
Use < to create a min heap.
Use > to create a max heap.
Arena index to access the associated PollDescriptor when processing an IO
event. Nil for timed events (sleep, select timeout).
Arena index to access the associated PollDescriptor when processing an IO
event. Nil for timed events (sleep, select timeout).
The absolute time, against the monotonic clock, at which a timed event shall trigger. Nil for IO events without a timeout.
Manually set the absolute time (against the monotonic clock). This is meant
for FiberEvent to set and cancel its inner sleep or select timeout; these
objects are allocated once per Fiber.
NOTE: musn't be changed after registering the event into Timers!
The absolute time, against the monotonic clock, at which a timed event shall trigger. Nil for IO events without a timeout.