# File lib/background_process/background_process.rb, line 95 def detect(which = :both, timeout = nil, &block) streams = select_streams(which) BackgroundProcess::IOHelpers.detect(streams, timeout, &block) end