Contents

Publishers.SetFailureType

A publisher that appears to send a specified failure type.

Declaration

struct SetFailureType<Upstream, Failure> where Upstream : Publisher, Failure : Error, Upstream.Failure == Never

Overview

The publisher can’t actually fail with the specified type and finishes normally. Use this publisher type when you need to match the error types for two mismatched publishers.

Topics

Creating a set failure type publisher

Setting failure type

Declaring supporting types

Inspecting publisher properties

Comparing publishers

Default Implementations

See Also

Mapping elements