duplicate
Duplicates this NIOFileHandle
. This means that a new NIOFileHandle
object with a new underlying file descriptor is returned. The caller takes ownership of the returned NIOFileHandle
and is responsible for closing it.
func duplicate() throws -> NIOFileHandle
Returns
A new NIOFileHandle
with a fresh underlying file descriptor but shared seek pointer.