Sha256: f7ce56aecd151e215e0367fb9b511ac69b03cdc42c775f5d916b754f392c117d

Contents?: true

Size: 385 Bytes

Versions: 25

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true
module Dynflow
  module Semaphores
    class Dummy < Abstract

      def wait(thing)
        true
      end

      def get_waiting
        nil
      end

      def has_waiting?
        false
      end

      def release(*args)
      end

      def save
      end

      def get(n)
        n
      end

      def free
        1
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
dynflow-1.8.2 lib/dynflow/semaphores/dummy.rb
dynflow-1.8.1 lib/dynflow/semaphores/dummy.rb
dynflow-1.8.0 lib/dynflow/semaphores/dummy.rb
dynflow-1.7.0 lib/dynflow/semaphores/dummy.rb
dynflow-1.6.11 lib/dynflow/semaphores/dummy.rb
dynflow-1.6.10 lib/dynflow/semaphores/dummy.rb
dynflow-1.6.8 lib/dynflow/semaphores/dummy.rb
dynflow-1.6.7 lib/dynflow/semaphores/dummy.rb
dynflow-1.6.6 lib/dynflow/semaphores/dummy.rb
dynflow-1.6.5 lib/dynflow/semaphores/dummy.rb
dynflow-1.6.4 lib/dynflow/semaphores/dummy.rb
dynflow-1.6.3 lib/dynflow/semaphores/dummy.rb
dynflow-1.6.2 lib/dynflow/semaphores/dummy.rb
dynflow-1.6.1 lib/dynflow/semaphores/dummy.rb
dynflow-1.4.9 lib/dynflow/semaphores/dummy.rb
dynflow-1.4.8 lib/dynflow/semaphores/dummy.rb
dynflow-1.5.0 lib/dynflow/semaphores/dummy.rb
dynflow-1.4.7 lib/dynflow/semaphores/dummy.rb
dynflow-1.4.6 lib/dynflow/semaphores/dummy.rb
dynflow-1.4.5 lib/dynflow/semaphores/dummy.rb