module Concurrent::Synchronization::AbstractStruct

def ns_to_h

@!visibility private

@!macro struct_to_h
def ns_to_h
  length.times.reduce({}){|memo, i| memo[self.class::MEMBERS[i]] = @values[i]; memo}
end