addOnSuccessListener

fun <TResult> <ERROR CLASS><TResult>.addOnSuccessListener(executor: Executor, listener: (TResult) -> Unit): <ERROR CLASS><TResult>

Quality-of-life helper to allow using trailing lambda syntax for adding a success listener to a Task.