Entry is evictable when its write and read futures are ready, even if they are errors, so any buffers they hold are no longer needed by the underlying file actors
| 2126 | // Entry is evictable when its write and read futures are ready, even if they are |
| 2127 | // errors, so any buffers they hold are no longer needed by the underlying file actors |
| 2128 | Future<Void> onEvictable() const { return ready(readFuture) && ready(writeFuture); } |
| 2129 | |
| 2130 | // Read and write futures are safe to cancel so just cancel them and return |
| 2131 | Future<Void> cancel() { |