Method
Close
func Close() -> ()
Declaring type: Socket
Module: System.Networking.Sockets
Assembly: System.Networking.dll
Source file: Socket.rvn
Closes the connection or listener and settles its uncommitted transfers or accept as Closed.
Return value
()
Remarks
Repeated calls are harmless. Native outcomes already committed before Close remain unchanged even if their Task callback has not yet run. Completion callbacks are delivered through the scheduler. Closing a listener does not close its accepted connections. Closing a connected socket closes both directions; it is not a send-half shutdown or an awaitable close.