Companion

object Companion

Functions

Link copied to clipboard
fun config(retry: Int = 0, backOffDelay: Int = 0, startDelay: Int = 0): TaskConfig
Link copied to clipboard
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>

inline fun <ResultT> execute(    retry: Int = 0,     backOffDelay: Int = 0,     startDelay: Int = 0,     timeout: Int? = null,     config: TaskConfig? = TaskConfig(retry, backOffDelay, startDelay, timeout),     noinline block: suspend CoroutineScope.() -> ResultT): Task<ResultT>

Build that will create a task and it's logic