onSuccessEmpty

suspend fun onSuccessEmpty(action: suspend () -> Unit): Response<T>

Executes the given action if this is a SuccessEmpty response.

Return

This response for chaining.

Parameters

action

The suspend function to execute when the response is empty success.