Contents

Just

A publisher that emits an output to each subscriber just once, and then finishes.

Declaration

struct Just<Output>

Overview

You can use a Just publisher to start a chain of publishers. A Just publisher is also useful when replacing a value with Publishers.Catch.

In contrast with Result.Publisher, a Just publisher can’t fail with an error. And unlike Optional.Publisher, a Just publisher always produces a value.

Topics

Creating a just ublisher

Inspecting publisher properties

Comparing publishers

Applying operators

Default Implementations

See Also

Convenience Publishers