Function close [src]
Prototype
pub fn close(s: Stream) void
Parameters
s: Stream
Source
pub fn close(s: Stream) void {
switch (native_os) {
.windows => windows.closesocket(s.handle) catch unreachable,
else => posix.close(s.handle),
}
}