fun <T : Any> <ERROR CLASS><T>.wrapWithDatabaseTransaction(db: <ERROR CLASS>? = null): <ERROR CLASS><T>
Wrap delivery of observations in a database transaction. Multiple subscribers will receive the observations inside the same database transaction. This also lazily subscribes to the source rx.Observable to preserve any buffering that might be in place.