• Kamil Trzciński's avatar
    Make Daemon thread-safe · 063dc1bc
    Kamil Trzciński authored
    This introduces `#run_thread` method.
    
    The `#start_working` is executed in lock context,
    the same as `#stop_working`. This allows safe
    initialisation of resources before `#run_thread`
    consumes them.
    063dc1bc
daemon_spec.rb 3.38 KB