Skip to main content

Module async_file_ops

Module async_file_ops 

Source
Expand description

Async file I/O operations for the io module.

Provides non-blocking file read/write using tokio’s async file API. These integrate with the VM’s async/await system via AsyncModuleFn.

Functions§

io_append_file_async
io.append_file_async(path: string, data: string) -> int
io_exists_async
io.exists_async(path: string) -> bool
io_read_bytes_async
io.read_bytes_async(path: string) -> Array
io_read_file_async
io.read_file_async(path: string) -> string
io_write_file_async
io.write_file_async(path: string, data: string) -> int