Skip to content

Commit 6f9d974

Browse files
committed
Clarify Concurrent:Hash#each documentation
1 parent a38d98d commit 6f9d974

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/concurrent/hash.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ module Concurrent
88
#
99
# A thread-safe subclass of Hash. This version locks against the object
1010
# itself for every method call, ensuring only one thread can be reading
11-
# or writing at a time. This includes iteration methods like `#each`.
11+
# or writing at a time. This includes iteration methods like `#each`,
12+
# which takes the lock repeatedly when reading an item.
1213
#
1314
# @see http://ruby-doc.org/core-2.2.0/Hash.html Ruby standard library `Hash`
1415
class Hash < ::Hash;

0 commit comments

Comments
 (0)