dry-rb/dry-events

View on GitHub
lib/dry/events/constants.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

require 'concurrent/map'
require 'dry/core/constants'

module Dry
  module Events
    include Dry::Core::Constants

    LISTENERS_HASH = Concurrent::Map.new { |h, k| h[k] = [] }
  end
end