lib/ffmpeg/screenrecorder.rb
#
# Waits for IO#eof? to return true
# after 'q' is sent to the ffmpeg process.
#
Waits for IO#eof. to return true
after 'q' is sent to the ffmpeg process.
Waits for IO#eof . to return true after ' q ' is sent to the ffmpeg process .
def wait_for_io_eof(timeout)
      start = Time.now
      Timeout.timeout(timeout) do
        sleep(0.1) until @process.eof?
      end
      FFMPEG.logger.debug "IO#eof? #{@process.eof?}"
      Time.now - start
    end
def wait_for_io_eof ( timeout ) start = Time . now Timeout . timeout ( timeout ) do sleep ( 0.1 ) until @process . eof? end FFMPEG . logger . debug "IO#eof? #{@process.eof?}" Time . now - start end
Waits for IO#eof?
Waits for IO#eof?
timeout