implement cancel function on readableStream
This commit is contained in:
parent
88472571bb
commit
ac00297abe
|
@ -48,6 +48,9 @@ export const getFileStream = async (filePath: string) => {
|
|||
await fs.close(file);
|
||||
}
|
||||
},
|
||||
async cancel() {
|
||||
await fs.close(file);
|
||||
},
|
||||
});
|
||||
return readableStream;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue