MCPcopy Create free account
hub / github.com/fontsource/fontsource / write

Method write

website/app/utils/legend-persistence.ts:17–26  ·  view source on GitHub ↗
(action: () => void)

Source from the content-addressed store, hash-verified

15 }
16
17 private write(action: () => void) {
18 if (this.failed) return;
19
20 try {
21 action();
22 } catch {
23 this.failed = true;
24 this.onError();
25 }
26 }
27
28 override set(table: string, changes: Change[]) {
29 this.write(() => super.set(table, changes));

Callers 5

setMethod · 0.95
setMetadataMethod · 0.95
deleteTableMethod · 0.95
deleteMetadataMethod · 0.95
loaderFunction · 0.80

Calls 1

actionFunction · 0.85

Tested by

no test coverage detected