takingOwnershipOfDescriptor(input:channelInitializer:)

    Create the PipeChannel with the provided input file descriptor.

    Bootstrap.swift:2340
    iOS
    13+
    macOS
    10.15+
    tvOS
    13+
    watchOS
    6+
    func takingOwnershipOfDescriptor<Output>(input: CInt, channelInitializer: @escaping (Channel) -> EventLoopFuture<Output>) async throws -> Output where Output : Sendable

    Parameters

    input

    The Unix file descriptor for the input (ie. the read side).

    channelInitializer

    A closure to initialize the channel. The return value of this closure is returned from the connect method.

    Returns

    The result of the channel initializer.

    The input file descriptor must be distinct.

    Other members in extension

    Type members

    Instance members

    Show obsolete interfaces (2)

    Hide obsolete interfaces