sqlite_async.dart icon indicating copy to clipboard operation
sqlite_async.dart copied to clipboard

Fix web database not respecting lock timeouts

Open simolus3 opened this issue 10 months ago • 0 comments

The readLock and writeLock APIs have a lockTimeout parameter to not wait on locks longer than intended. The WebDatabase implementation did not forward these arguments properly, this fixes that.

I've also removed an unused field on MutexImpl on the web and simplified the check for navigator.locks a bit.

simolus3 avatar Feb 27 '25 17:02 simolus3