INNER CODE UNIT · Ruby

success

EugenMayer/docker-sync · lib/docker-sync/command.rb:61

    def success?
      status.success?
    end

    def join(limit = FOREVER)
      return self if @status

      tf = Time.now + limit
      until (t = Time.now) >= tf
        capture(tf - t)
        res = Process.waitpid(@pid, Process::WNOHANG)
        if res
          @status = $?
          return self
        end
      end

      nil

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…