Package-level declarations
Types
A contextual reference which provides access to a secondary, asynchronous implementation of the kmp-file:file API. On Jvm/Native, the synchronous kmp-file:file functions are simply called within the provided ctx (such as a background dispatcher). On Js/WasmJs, the kmp-file:file module exposes via InternalFileApi JavaScript's asynchronous callback API which is used in lieu of its synchronous API, which is called within the provided ctx.
Functions
An asynchronous version of io.matthewnelson.kmp.file.absoluteFile2.
An asynchronous version of io.matthewnelson.kmp.file.absolutePath2.
An asynchronous version of io.matthewnelson.kmp.file.append.
An asynchronous version of io.matthewnelson.kmp.file.append.
An asynchronous version of io.matthewnelson.kmp.file.appendBytes.
An asynchronous version of io.matthewnelson.kmp.file.appendUtf8.
An asynchronous version of io.matthewnelson.kmp.file.canonicalFile2.
An asynchronous version of io.matthewnelson.kmp.file.canonicalPath2.
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.
An asynchronous version of io.matthewnelson.kmp.file.exists2.
An asynchronous version of io.matthewnelson.kmp.file.openAppend.
An asynchronous version of io.matthewnelson.kmp.file.openRead.
An asynchronous version of io.matthewnelson.kmp.file.openReadWrite.
An asynchronous version of io.matthewnelson.kmp.file.openWrite.
An asynchronous version of FileStream.position. If FileStream was not opened using AsyncFs, thus not inheriting its CoroutineContext, then the default AsyncFs.ctx will be used instead.
An asynchronous version of io.matthewnelson.kmp.file.read.
An asynchronous version of io.matthewnelson.kmp.file.read.
An asynchronous version of FileStream.Read.read. If FileStream was not opened using AsyncFs, thus not inheriting its CoroutineContext, then the default AsyncFs.ctx will be used instead.
An asynchronous version of FileStream.Read.read. If FileStream was not opened using AsyncFs, thus not inheriting its CoroutineContext, then the default AsyncFs.ctx will be used instead.
An asynchronous version of FileStream.Read.read. If FileStream was not opened using AsyncFs, thus not inheriting its CoroutineContext, then the default AsyncFs.ctx will be used instead.
An asynchronous version of io.matthewnelson.kmp.file.readBytes.
An asynchronous version of io.matthewnelson.kmp.file.readUtf8.
An asynchronous version of FileStream.size. If FileStream was not opened using AsyncFs, thus not inheriting its CoroutineContext, then the default AsyncFs.ctx will be used instead.
An asynchronous version of FileStream.Write.size. If FileStream was not opened using AsyncFs, thus not inheriting its CoroutineContext, then the default AsyncFs.ctx will be used instead.
An asynchronous version of FileStream.sync. If FileStream was not opened using AsyncFs, thus not inheriting its CoroutineContext, then the default AsyncFs.ctx will be used instead.
An asynchronous version of io.matthewnelson.kmp.file.use whereby closeAsync is called in lieu of FileStream.close.
An asynchronous version of io.matthewnelson.kmp.file.write.
An asynchronous version of io.matthewnelson.kmp.file.write.
An asynchronous version of FileStream.Write.write. If FileStream was not opened using AsyncFs, thus not inheriting its CoroutineContext, then the default AsyncFs.ctx will be used instead.
An asynchronous version of FileStream.Write.write. If FileStream was not opened using AsyncFs, thus not inheriting its CoroutineContext, then the default AsyncFs.ctx will be used instead.
An asynchronous version of io.matthewnelson.kmp.file.writeBytes.
An asynchronous version of FileStream.Write.write. If FileStream was not opened using AsyncFs, thus not inheriting its CoroutineContext, then the default AsyncFs.ctx will be used instead.