awaitCallInTx

suspend fun <V : Any> BoxStore.awaitCallInTx(callable: Callable<V?>): V?

Wraps BoxStore.callInTxAsync in a coroutine that suspends until the transaction has completed. Likewise, on success the return value of the given callable is returned, on failure an exception is thrown.

Note that even if the coroutine is cancelled the callable is always executed.

The callable (and transaction) is submitted to the ObjectBox internal thread pool.