toggle menu
Simple Robot
4.8.0
jvm
switch theme
search in API
simbot-common-core
/
love.forte.simbot.common.collectable
/
collectBy
collect
By
jvm
suspend
fun
<
T
,
R
>
Flow
<
T
>
.
collectBy
(
scope
:
CoroutineScope
,
launchContext
:
CoroutineContext
=
EmptyCoroutineContext
,
collector
:
Collector
<
T
,
*
,
R
>
)
:
R
(
source
)
suspend
fun
<
T
,
R
>
Flow
<
T
>
.
collectBy
(
collector
:
Collector
<
T
,
*
,
R
>
)
:
R
(
source
)
使用
Collector
收集
Flow
中的元素。