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.
2 parents 07e5274 + d761950 commit 53d8150Copy full SHA for 53d8150
library/src/scala/Enumeration.scala
@@ -25,6 +25,11 @@ import scala.util.matching.Regex
25
* `Value` type member of the enumeration (`Value` selected on the stable
26
* identifier path of the enumeration instance).
27
*
28
+ * Values SHOULD NOT be added to an enumeration after its construction;
29
+ * doing so makes the enumeration thread-unsafe. If values are added to an
30
+ * enumeration from multiple threads (in a non-synchronized fashion) after
31
+ * construction, the behavior of the enumeration is undefined.
32
+ *
33
* @example {{{
34
* // Define a new enumeration with a type alias and work with the full set of enumerated values
35
* object WeekDay extends Enumeration {
0 commit comments