class
Obsctl::Runtime::EventLoop
- Obsctl::Runtime::EventLoop
- Reference
- Object
Overview
Tiny blocking loop that can be stopped through an internal channel.
Defined in:
obsctl/runtime/event_loop.crConstructors
-
.new(stop : Channel(Nil) = Channel(Nil).new)
Creates an event loop using an optional external stop channel.
Instance Method Summary
-
#run : Nil
Blocks until
#stopis called. -
#stop : Nil
Requests that the event loop return.
Constructor Detail
Creates an event loop using an optional external stop channel.