create

open 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.

<RT>

type of the Result.

<ET>

type of the error.