yieldTransaction

fun yieldTransaction(@IntRange(from = 0) pauseMillis: Long = 0): Boolean(source)

Temporarily end the transaction to allow other threads to make progress. The transaction is assumed to be successful thus far and committed, do not call setTransactionSuccessful. When this method returns a new transaction will have been created but not yet marked as successful.

The yielding transaction can be nested.