Initializes and returns a file handle object associated with the specified file descriptor and deallocation policy.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The POSIX file descriptor with which to initialize the file handle.
trueif the returned file handle object should take ownership of the file descriptor and close it for you or
falseif you want to maintain ownership of the file descriptor.
An initialized file handle object.
false, the file descriptor you pass in to this method is not owned by the file handle object. In such a case, you are responsible for closing the file descriptor at some point after disposing of the file handle object. If you want the file handle object to close the descriptor for you automatically, pass
true for the