chickadee » hopefully » with-current-transaction

with-current-transaction THUNKprocedure

Establish a new current-transaction and call THUNK. After thunk completed, commit the current transaction. If that failes, THUNK is called again.

Returns whatever THUNK returns.