We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc54be4 commit cef13b9Copy full SHA for cef13b9
lib/concurrent/set.rb
@@ -16,9 +16,12 @@ module Concurrent
16
#
17
# @note `a += b` is **not** a **thread-safe** operation on
18
# `Concurrent::Set`. It reads Set `a`, then it creates new `Concurrent::Set`
19
- # which is concatenation of `a` and `b`, then it writes the concatenation to `a`.
+ # which is union of `a` and `b`, then it writes the union to `a`.
20
# The read and write are independent operations they do not form a single atomic
21
# operation therefore when two `+=` operations are executed concurrently updates
22
+ # may be lost. Use `#merge` instead.
23
+ #
24
+ # @see http://ruby-doc.org/stdlib-2.4.0/libdoc/set/rdoc/Set.html Ruby standard library `Set`
25
class Set < ::Set;
26
end
27
0 commit comments