suspend fun AsyncFile.closeAwait(): Unit
Close the file. The actual close happens asynchronously. The handler will be called when the close is complete, or an error occurs. |
|
suspend fun AsyncFile.flushAwait(): Unit
Same as io.vertx.core.file.AsyncFile but the handler will be called when the flush is complete or if an error occurs |
|
suspend fun AsyncFile.readAwait(buffer: Buffer, offset: Int, position: Long, length: Int): Buffer
Reads length bytes of data from the file at position position in the file, asynchronously. |
|
suspend fun AsyncFile.writeAwait(buffer: Buffer, position: Long): Unit
Write a io.vertx.core.buffer.Buffer to the file at position position in the file, asynchronously. |