await

abstract fun await()

Waits if necessary for the request to complete.

Since

1.0.0

Throws

If the app is not authorized to perform the specified operation.

If the app requests the specified operation with invalid conditions.

If the platform experienced an internal error, that cannot be resolved by the app.

If the platform is not ready to serve the specified operation.

If the app cancels the operation.


abstract fun await(timeout: Long, unit: TimeUnit)

Waits if necessary for the request to complete, but no longer than the specified time.

Since

1.0.0

Parameters

timeout

Time to wait for the request to complete.

unit

Measurement unit for timeout.

Throws

If the app is not authorized to perform the specified operation.

If the app requests the specified operation with invalid conditions.

If the platform experienced an internal error, that cannot be resolved by the app.

If the platform is not ready to serve the specified operation.

If the app cancels the operation.

If the wait timed out

Preferences Submitted

You have successfully updated your cookie preferences.