kmath
0.3.1-dev-RC
common
kmath-coroutines
/
space.kscience.kmath.coroutines
Package-level
declarations
Types
Functions
Properties
Types
Async
Flow
Link copied to clipboard
class
AsyncFlow
<
out
T
>
:
Flow
<
T
>
Functions
async
Link copied to clipboard
inline
fun
<
T
,
R
>
Flow
<
T
>
.
async
(
dispatcher
:
CoroutineDispatcher
=
Dispatchers.Default
,
crossinline
block
:
suspend
CoroutineScope
.
(
T
)
->
R
)
:
AsyncFlow
<
R
>
collect
Link copied to clipboard
inline suspend
fun
<
T
>
AsyncFlow
<
T
>
.
collect
(
concurrency
:
Int
,
crossinline
action
:
suspend
(
value
:
T
)
->
Unit
)
suspend
fun
<
T
>
AsyncFlow
<
T
>
.
collect
(
concurrency
:
Int
,
collector
:
FlowCollector
<
T
>
)
map
Link copied to clipboard
inline
fun
<
T
,
R
>
AsyncFlow
<
T
>
.
map
(
crossinline
action
:
(
T
)
->
R
)
:
AsyncFlow
<
R
>
map
Parallel
Link copied to clipboard
inline
fun
<
T
,
R
>
Flow
<
T
>
.
mapParallel
(
dispatcher
:
CoroutineDispatcher
=
Dispatchers.Default
,
crossinline
transform
:
suspend
(
T
)
->
R
)
:
Flow
<
R
>
Properties
Math
Link copied to clipboard
val
Dispatchers
.
Math
:
CoroutineDispatcher