openWrite

suspend fun AsyncFs.openWrite(file: File, excl: OpenExcl?, appending: Boolean): FileStream.Write(source)
inline suspend fun AsyncFs.openWrite(file: File, excl: OpenExcl?): FileStream.Write(source)

An asynchronous version of io.matthewnelson.kmp.file.openWrite.

NOTE: AsyncFs.ctx is stored by the FileStream and used for all subsequent asynchronous FileStream function calls. The reference to it is then cleared by the FileStream implementation upon closure.

See also