class Concurrent::CyclicBarrier

def initialize(parties, &block)

Raises:
  • (ArgumentError) - if `parties` is not an integer or is less than zero

Other tags:
    Yield: - an optional block that will be executed that will be executed after

Parameters:
  • parties (Fixnum) -- the number of parties
def initialize(parties, &block)
  Utility::NativeInteger.ensure_integer_and_bounds parties
  Utility::NativeInteger.ensure_positive_and_no_zero parties
  super(&nil)
  synchronize { ns_initialize parties, &block }
end