Python 3.10 is now available in preview.


A decorator that insures a function is run outside a transaction.

If there is an existing transaction (and allow_existing=True), the existing transaction is paused while the function is executed.

_func do not use
allow_existing If false, throw an exception if called from within a transaction

A wrapper for the decorated function that ensures it runs outside a transaction.