Function close [src]

Upon success, the stream is in an uninitialized state. To continue using it, you must use the open() function.

Prototype

pub fn close(self: File) void

Parameters

self: File

Source

pub fn close(self: File) void { if (is_windows) { windows.CloseHandle(self.handle); } else { posix.close(self.handle); } }