summaryrefslogtreecommitdiff
path: root/cli/util/sync/sync_read_async_write_lock.rs
AgeCommit message (Collapse)Author
2024-06-05refactor(npm): improve locking around updating npm resolution (#24104)David Sherret
Introduces a `SyncReadAsyncWriteLock` to make it harder to write to the npm resolution without first waiting async in a queue. For the npm resolution, reading synchronously is fine, but when updating, someone should wait async, clone the data, then write the data at the end back.