create

fun <RT, ET> create(result: RT?, error: ET?): AsyncTaskResult<RT?, ET?>

Instantiates an AsyncTaskResult.

Return

a new instance of an AsyncTaskResult.

Parameters

result

The result value.

error

The error value.

type of the error.