dir[Symbol.asyncDispose]()


调用 dir.close() 并返回一个 promise,当目录关闭时执行。

¥Calls dir.close() and returns a promise that fulfills when the dir is closed.