CSVAsyncEncoder

public final class CSVAsyncEncoder

An encoder for encoding multiple objects separately into a single CSV document.

You can get an instance of the CSVAsyncEncoder using the CSVEncoder.async(_:) method.

  • Encodes an Encodable object into a row for a CSV document and passes it into the onRow closure.

    Throws

    Erros that occur when encoding the object passed in.

    Declaration

    Swift

    public func encode<T>(_ object: T)throws where T: Encodable

    Parameters

    object

    The object to encode to a CSV row.