IndexedDb transaction auto-commit behavior in edge cases
问题 Tx is committed when : request success callback returns - that means that multiple requests can be executed within transaction boundaries only when next request is executed from success callback of the previous one when your task returns to event loop It means that if no requests are submitted to it, it is not committed until it returns to event loop. These facts pose 2 problematic states : placing a new IDB request by enqueuing a new task to event loop queue from within the success callback