onSuccess

fun onSuccess(action: (ResultT) -> Unit): Task<ResultT>

a success scope that is attachable to a task instance * task().onSuccess { // do background logic , call another api } use this scope to retrieve the success response of a task