(path: string, content: string)
| 36 | } |
| 37 | |
| 38 | async write(path: string, content: string): Promise<void> { |
| 39 | const p = this.doWrite(path, content); |
| 40 | this.inflightWrites.add(p); |
| 41 | try { |
| 42 | await p; |
| 43 | } finally { |
| 44 | this.inflightWrites.delete(p); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | private async doWrite(path: string, content: string): Promise<void> { |
| 49 | try { |