writable._destroy(err, callback)


_destroy() 方法会被 writable.destroy() 调用。 它可以被子类重写,但不能直接调用。

  • err <Error> A possible error.
  • callback <Function> A callback function that takes an optional error argument.

The _destroy() method is called by writable.destroy(). It can be overridden by child classes but it must not be called directly.