Pedro Sena
06/15/2021, 5:15 PM@Transactional and Either ?
Basically I'm using Either<Throwable, Something> as return type for many of my services and now I'd like to add transactional control through annotations instead of doing it manually (just recently integrated micronaut into the project)
Do you have any tips on how(if possible) to accommodate both ?Alex Johnson
06/15/2021, 7:26 PMfun save(m: Model): Either<Error, Model> = tx { stuff.. }Pedro Sena
06/15/2021, 7:28 PM@Transactional for me as it simply reuses any ongoing transaction (unless specified otherwise)dnowak
06/16/2021, 7:49 AM@Transactional is based on thread locals -> it will not work with suspend functions as coroutines. You have to switch to TransactionalOperator in such case.Pedro Sena
06/16/2021, 2:25 PMsimon.vergauwen
06/17/2021, 10:34 AMtx block public somewhere?