class Obsctl::Runtime::EventLoop

Overview

Tiny blocking loop that can be stopped through an internal channel.

Defined in:

obsctl/runtime/event_loop.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(stop : Channel(Nil) = Channel(Nil).new) #

Creates an event loop using an optional external stop channel.


[View source]

Instance Method Detail

def run : Nil #

Blocks until #stop is called.


[View source]
def stop : Nil #

Requests that the event loop return.


[View source]