release_handle

function of dascore.utils.io source

release_handle(
    handle ,
    abort: bool = False,
)

Release a file handle, closing it or discarding its uncommitted work.

Only a few handles can abort; a remote HDF5 writer does, because closing it uploads whatever was written so far. Everything else is closed, and a handle with no close needs no release at all.