Generic Instance Method

encode(encoder:)

Encodes the output from upstream using a specified TopLevelEncoder. For example, use JSONEncoder.

Declaration

func encode<Coder>(encoder: Coder) -> Publishers.Encode<Publishers.Autoconnect<Upstream>, Coder> where Coder : TopLevelEncoder
Available when Output conforms to Encodable.