io.paymenthighway.sdk.util / CallbackResult / <init>

<init>

CallbackResult(completion: (Result<T, Exception>) -> Unit)

Helper for connecting the Retrofit2 Callback into Result completion

Parameters

T - the type of the data for success operation

completion - sdk callback result