after running this, i get the file not found error
FileNotFound: No such file or directory: '/some-image.png'
but right after the code blocks run, i stop the process(ctrl+c) and re-run it then it finds the file. so i get this error only after running the second async functions right after the first async function in the same process.
here is an explanation of what the issue is
first one writes the files second one checks if the file was written
after running this, i get the file not found error
FileNotFound: No such file or directory: '/some-image.png'
but right after the code blocks run, i stop the process(ctrl+c) and re-run it then it finds the file. so i get this error only after running the second async functions right after the first async function in the same process.