BatchResult

class BatchResult : Result


The result of a batch operation. The result status is successful if and only if all results are successful. Individual results can be retrieved using BatchResultToken objects.

Summary

Public functions

R!
<R : Result?> take(resultToken: BatchResultToken<R!>!)

Retrieves a result from the batch.

Public properties

Status!

Public functions

take

fun <R : Result?> take(resultToken: BatchResultToken<R!>!): R!

Retrieves a result from the batch.

After the result has been retrieved, it is an error to attempt to retrieve it again. It is the responsibility of the caller to release any resources associated with the returned result. Some result types may implement Releasable, in which case release should be used to free the associated resources.

Public properties

status

val statusStatus!