onSuccess

fun onSuccess(@MainThread callback: (T) -> Unit): MoETask<T>

Attaches a callback invoked on the main thread when the operation succeeds.

Return

This instance for chaining.

Parameters

callback

Receives the typed success result.