Sha256: d66f05fc0daba94563aa0cc818cf20fa822518f196db7f1f6ceb4a891be8c0da

Contents?: true

Size: 283 Bytes

Versions: 20

Compression:

Stored size: 283 Bytes

Contents

require 'concurrent/maybe'

module Concurrent
  class Channel
    class Selector

      class DefaultClause

        def initialize(block)
          @block = block
        end

        def execute
          Concurrent::Maybe.just(@block.call)
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
concurrent-ruby-edge-0.7.2 lib/concurrent-ruby-edge/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.7.1 lib/concurrent-ruby-edge/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.7.0 lib/concurrent-ruby-edge/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.6.0 lib/concurrent-ruby-edge/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.6.0.pre1 lib/concurrent-ruby-edge/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.5.0 lib-edge/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.4.1 lib-edge/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.4.0.pre2 lib-edge/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.4.0.pre1 lib-edge/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.2.4 lib/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.3.1 lib/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.3.0 lib/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.2.3 lib/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.2.3.pre3 lib/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.2.2 lib/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.2.1 lib/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.2.0 lib/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.2.0.pre5 lib/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.2.0.pre4 lib/concurrent/channel/selector/default_clause.rb
concurrent-ruby-edge-0.2.0.pre3 lib/concurrent/channel/selector/default_clause.rb