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 8ad012a commit 3e5acfdCopy full SHA for 3e5acfd
kotlinx-coroutines-core/common/src/selects/Select.kt
@@ -372,7 +372,12 @@ internal open class SelectImplementation<R>(
372
373
/**
374
* List of clauses waiting on this `select` instance.
375
+ *
376
+ * This property is the subject to bening data-race: concurrent cancellation might null-out this property
377
+ * while [trySelect] operation reads it and iterates over its content.
378
+ * A logical race is resolved by the consensus on [state] property.
379
*/
380
+ @BenignDataRace
381
private var clauses: MutableList<ClauseData>? = ArrayList(2)
382
383
0 commit comments