Skip to content

Commit

Permalink
Add some known thread safe types to[]
Browse files Browse the repository at this point in the history
These types are already in []

TAP train ticket - []

PiperOrigin-RevId: 607088877
  • Loading branch information
java-team-github-bot authored and Error Prone Team committed Feb 14, 2024
1 parent 4f060e1 commit ae3a19f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ private static ImmutableMap<String, AnnotationInfo> buildThreadSafeClasses(
.add("kotlinx.coroutines.CoroutineDispatcher")
.add("kotlinx.coroutines.CoroutineScope")
.add("kotlinx.coroutines.ExecutorCoroutineDispatcher")
.add("kotlinx.coroutines.flow.Flow", "T")
.add("kotlinx.coroutines.flow.SharedFlow", "T")
.add("kotlinx.coroutines.flow.MutableSharedFlow", "T")
.add("kotlinx.coroutines.flow.StateFlow", "T")
.add("kotlinx.coroutines.flow.MutableStateFlow", "T")
.add("kotlinx.coroutines.sync.Mutex")
.add("kotlinx.coroutines.sync.Semaphore")
.add("kotlin.Unit")
Expand Down

0 comments on commit ae3a19f

Please sign in to comment.