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