execute

fun <ResultT> execute(config: TaskConfig? = TaskConfig(), block: suspend CoroutineScope.() -> ResultT): Task<ResultT>

Parameters

block

provide your logic