(path: string, content: string)
| 111 | } |
| 112 | |
| 113 | private async appendVersion(path: string, content: string): Promise<void> { |
| 114 | const prior = this._writeLocks.get(path) ?? Promise.resolve(); |
| 115 | const next = prior.then(() => this._doAppendVersion(path, content)); |
| 116 | this._writeLocks.set( |
| 117 | path, |
| 118 | next.catch(() => {}), |
| 119 | ); |
| 120 | return next; |
| 121 | } |
| 122 | |
| 123 | private async _doAppendVersion(path: string, content: string): Promise<void> { |
| 124 | const dir = this.versionsDir(path); |
no test coverage detected