&mut self in async napi methods should be marked as unsafe
Write bytes into this writer.
const writer = await op.writer("path/to/file");
await writer.write(Buffer.from("hello world"));
await writer.close();
Copyright © 2022-2024, The Apache Software Foundation. Apache OpenDAL, OpenDAL, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.
Writer is designed to write data into a given path in an asynchronous manner.