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.

    FileHandle.swift:68
    func duplicate() throws -> NIOFileHandle

    Returns

    A new NIOFileHandle with a fresh underlying file descriptor but shared seek pointer.

    Other members in extension

    Types

    • struct Flags

      Flags allows to specify additional flags to Mode, such as permission for file creation.

    • struct Mode

      Mode represents file access modes.

    Type members

    Instance members