PipeEndState.closeInternal
Internal close implementation.
Unregisters the wakeup watcher, closes the handle (which cancels pending I/O), resets state, and optionally invokes the close callback.
Parameters
reason | The reason for closing. |
errorNumber | Error code if closing due to error, or 0. |
invokeCallback | Whether to invoke the close callback. |