toggle menu
Core
0.1.5
common
switch theme
search in API
Core
/
io.telereso.kmp.core
/
Task
/
Companion
/
execute
execute
inline
fun
<
ResultT
>
execute
(
retry
:
Int
=
0
,
backOffDelay
:
Int
=
0
,
startDelay
:
Int
=
0
,
config
:
TaskConfig
?
=
TaskConfig(retry, backOffDelay, startDelay)
,
noinline
block
:
suspend
CoroutineScope
.
(
)
->
ResultT
)
:
Task
<
ResultT
>
Build that will create a task and it's logic
Parameters
block
That task logic