The result of the save. A rejected
promise represents an API violation.
Example
// Go attempt to download the file contents from a blob letresult = awaitdisk_write_file({ data:image_blob, filename:"picture_of_me.png" }); if (result.is_error()) { // handle the error }
Will save the specified data to a filename in the operating system download directory.