File tree 1 file changed +2
-2
lines changed
kotlinx-coroutines-core/common/src/flow/operators
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ public inline fun <T> SharedFlow<T>.retryWhen(noinline predicate: suspend FlowCo
144
144
level = DeprecationLevel .WARNING
145
145
)
146
146
@InlineOnly
147
- public suspend inline fun <T > SharedFlow<T>.toList (): List <T > =
147
+ public suspend inline fun <T > SharedFlow<T>.toList (destination : MutableList < T > = ArrayList () ): List <T > =
148
148
(this as Flow <T >).toList()
149
149
150
150
/* *
@@ -156,7 +156,7 @@ public suspend inline fun <T> SharedFlow<T>.toList(): List<T> =
156
156
level = DeprecationLevel .WARNING
157
157
)
158
158
@InlineOnly
159
- public suspend inline fun <T > SharedFlow<T>.toSet (): Set <T > =
159
+ public suspend inline fun <T > SharedFlow<T>.toSet (destination : MutableSet < T > = LinkedHashSet () ): Set <T > =
160
160
(this as Flow <T >).toSet()
161
161
162
162
/* *
You can’t perform that action at this time.
0 commit comments