← Back to Stormify Documentation

transaction

fun transaction(block: Runnable)

Starts a nested transaction via a savepoint. If block throws, only its work is rolled back.


Starts a nested transaction via a savepoint and returns block's result. If block throws, only its work is rolled back.