module Crystal::EventLoop

Defined in:

crystal/system/event_loop.cr
crystal/system/unix/event_loop_libevent.cr

Class Method Summary

Class Method Detail

def self.after_fork : Nil #

Reinitializes the event loop after a fork.


[View source]
def self.create_fd_read_event(io : IO::Evented, edge_triggered : Bool = false) : Crystal::Event #

Creates a read event for a file descriptor.


[View source]
def self.create_fd_write_event(io : IO::Evented, edge_triggered : Bool = false) : Crystal::Event #

Creates a write event for a file descriptor.


[View source]
def self.create_resume_event(fiber : Fiber) : Crystal::Event #

Create a new resume event for a fiber.


[View source]
def self.run_once #

Runs the event loop.


[View source]