module Crystal::EventLoop
Defined in:
crystal/system/event_loop.crcrystal/system/unix/event_loop_libevent.cr
Class Method Summary
-
.after_fork : Nil
Reinitializes the event loop after a fork.
-
.create_fd_read_event(io : IO::Evented, edge_triggered : Bool = false) : Crystal::Event
Creates a read event for a file descriptor.
-
.create_fd_write_event(io : IO::Evented, edge_triggered : Bool = false) : Crystal::Event
Creates a write event for a file descriptor.
-
.create_resume_event(fiber : Fiber) : Crystal::Event
Create a new resume event for a fiber.
-
.run_once
Runs the event loop.
Class Method Detail
Creates a read event for a file descriptor.
Creates a write event for a file descriptor.
Create a new resume event for a fiber.