This PR includes a function + macro that wrap your code up in a retry loop. It will catch ConcurrentModificationExceptions from Datomic (which are thrown by the transaction functions). When one is caught, it will retry the entire body of the macro. It will ultimately fail after 100 tries.
How beautiful the retry!
This PR includes a function + macro that wrap your code up in a retry loop. It will catch ConcurrentModificationExceptions from Datomic (which are thrown by the transaction functions). When one is caught, it will retry the entire body of the macro. It will ultimately fail after 100 tries.