| 124 | Reference<IAsyncFile> file; |
| 125 | |
| 126 | ACTOR static Future<Void> waitAndSync(SyncQueue* self) { |
| 127 | wait(self->outstanding.front()); |
| 128 | self->outstanding.pop_front(); |
| 129 | wait(self->file->sync()); |
| 130 | return Void(); |
| 131 | } |
| 132 | }; |
| 133 | |
| 134 | // We use a Tracked instead of a Reference when the shutdown/destructor code would need to wait() on pending file |