Closed bash closed 2 years ago
The contract of Memoize is that the caller owns the returned disposable. Due to the optimization where we return immediately if the input is a buffer a caller might accidentally dispose a buffer that is owned by someone else.
Memoize
The contract of
Memoize
is that the caller owns the returned disposable. Due to the optimization where we return immediately if the input is a buffer a caller might accidentally dispose a buffer that is owned by someone else.