How do transactions work with keyvalues?

Hello,

I have a question regarding badger and transactions.

How can you have transactional behaviour with keyvalues? What if you haven’t finished inserting new values in a loop and someone does a read?