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