()
| 275 | } |
| 276 | |
| 277 | closeSync() { |
| 278 | if (this.#closed === true) { |
| 279 | throw new ERR_DIR_CLOSED(); |
| 280 | } |
| 281 | |
| 282 | if (this.#operationQueue !== null) { |
| 283 | throw new ERR_DIR_CONCURRENT_OPERATION(); |
| 284 | } |
| 285 | |
| 286 | while (this.#handlerQueue.length > 0) { |
| 287 | const handler = ArrayPrototypeShift(this.#handlerQueue); |
| 288 | handler.handle.close(); |
| 289 | } |
| 290 | |
| 291 | this.#closed = true; |
| 292 | this.#handle.close(); |
| 293 | } |
| 294 | |
| 295 | async* entries() { |
| 296 | try { |