In this code, is it safe not to wait for CopyToAsync or can the stream be deleted before the actual copy?
public Task SaveAsync(Stream source, string filepath) { using (var file = File.OpenWrite(filepath)) { return source.CopyToAsync(file); } }
source share