Unsubscribes from a file stream, decrementing its usage counter. If the counter reaches zero, the file stream is closed automatically.
Thrown if the environment is not a Node.js server.
Thrown if no subscriptions are found for the file stream.
Thrown if the file stream to unsubscribe from does not exist.
Thrown if an unexpected error occurs while unsubscribing from the file stream.
Path to the file of the stream to unsubscribe from.
A promise that resolves when the unsubscription is successful.
Unsubscribes from a file stream, decrementing its usage counter. If the counter reaches zero, the file stream is closed automatically.
Throws
Thrown if the environment is not a Node.js server.
Throws
Thrown if no subscriptions are found for the file stream.
Throws
Thrown if the file stream to unsubscribe from does not exist.
Throws
Thrown if an unexpected error occurs while unsubscribing from the file stream.