readbackContentSuspend

@RequiresApi(value = 27)
suspend fun GlobalTensor.readbackContentSuspend(): TensorContent

Suspend version of readbackContent because the readback may block the calling thread.

Return

Tensor content read from the GlobalTensor.

See also

Throws

if the application does not have the required permission(s), or if the GlobalTensor is invalid, or cannot be read back, such as a tensor created with Tensor.SceneGraphInitInfo config.