PipeEndState.closeInternal

void closeInternal(PipeCloseReason reason, int errorNumber, bool invokeCallback) @trusted nothrow

Internal close implementation.

Unregisters the wakeup watcher, closes the handle (which cancels pending I/O), resets state, and optionally invokes the close callback.

Parameters

reasonThe reason for closing.
errorNumberError code if closing due to error, or 0.
invokeCallbackWhether to invoke the close callback.