is optional but can be useful for deterministic resource management.
Example:
auto arc = Archive.open("/backups", "myarchive", "dar", readOpts().toLow());
// ... use the archive ...
arc.close(); // explicit cleanup
assert(!arc.isValid);void close() @safe @nogc nothrowExplicitly closes the archive and releases resources.
After calling close(), the archive handle becomes invalid and no further operations can be performed on it. This method is idempotent (safe to call multiple times).
is optional but can be useful for deterministic resource management.
Example:
auto arc = Archive.open("/backups", "myarchive", "dar", readOpts().toLow());
// ... use the archive ...
arc.close(); // explicit cleanup
assert(!arc.isValid);