Instance Method
close()
Closes the listening file descriptor immediately.
func close()
Mentioned In
Discussion
Safe to call multiple times — the kernel will return EBADF on the second close(2), which this wrapper ignores. Subsequent accept() calls will fail with SocketError.acceptFailed(_:).