closeAsync

An asynchronous version of FileStream.close. If FileStream was not opened using AsyncFs, thus not inheriting its CoroutineContext, then the default AsyncFs.ctx will be used instead. Additionally, this function uses the NonCancellable job for withContext to ensure closure is always had.

See also