Generic Instance Method

decode(type:decoder:)

Decodes the output from upstream using a specified TopLevelDecoder. For example, use JSONDecoder.

Declaration

func decode<Item, Coder>(type: Item.Type, decoder: Coder) -> Publishers.Decode<Publishers.Share<Upstream>, Item, Coder> where Item : Decodable, Coder : TopLevelDecoder, Self.Output == Coder.Input