mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
8 lines
287 B
JavaScript
8 lines
287 B
JavaScript
![]() |
/**
|
||
|
* Sync makes process can make data intermittently inconsistent. Processes which require strong data consistency
|
||
|
* (like consistency checks) can use this mutex to make sure sync isn't currently running.
|
||
|
*/
|
||
|
|
||
|
const Mutex = require('async-mutex').Mutex;
|
||
|
|
||
|
module.exports = new Mutex();
|