Tankōbon / main/services/library-organization / LibraryRunLock
Interface: LibraryRunLock
Defined in: main/services/library-organization.ts:49
Lets one long run over the library files at a time (a resynchronization, adding a file or a folder, organizing, cleaning the books): moving or rewriting files while a walk registers them could register a file twice, or recreate one that just moved.
Methods
busyMessage()
busyMessage():
string
Defined in: main/services/library-organization.ts:55
The translated refusal for a run that couldn't start.
Returns
string
end()
end():
void
Defined in: main/services/library-organization.ts:53
Releases the lock.
Returns
void
tryStart()
tryStart(
run):boolean
Defined in: main/services/library-organization.ts:51
Takes the lock for run; false when another run holds it.
Parameters
run
Returns
boolean