More state

This commit is contained in:
Manav Rathi 2024-09-12 18:20:19 +05:30
parent 816d74a5e6
commit 44d66da742
No known key found for this signature in database

View File

@ -59,19 +59,31 @@ class MLState {
comlinkWorker: Promise<ComlinkWorker<typeof MLWorker>> | undefined;
/**
* Subscriptions to {@link MLStatus}.
* Subscriptions to {@link MLStatus} updates.
*
* See {@link mlStatusSubscribe}.
*/
mlStatusListeners: (() => void)[] = [];
/**
* Snapshot of {@link MLStatus}.
*
* See {@link mlStatusSnapshot}.
* Snapshot of the {@link MLStatus} returned by the {@link mlStatusSnapshot}
* function.
*/
mlStatusSnapshot: MLStatus | undefined;
/**
* Subscriptions to updates to the list of {@link Person}s we know about.
*
* See {@link peopleSubscribe}.
*/
peopleListeners: (() => void)[] = [];
/**
* Snapshot of the {@link Person}s returned by the {@link peopleSnapshot}
* function.
*/
peopleSnapshot: Person[] | undefined;
/**
* In flight face crop regeneration promises indexed by the IDs of the files
* whose faces we are regenerating.