Just
struct · iOS 13.0+ · SDK 27.1
struct Just<Output>A publisher that emits an output to each subscriber just once, and then finishes. 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 <doc://com.apple.documentation/documentation/Swift/Result/publisher-swift.struct>, a ``Just`` publisher can’t fail with an error. And unlike <doc://com.apple.documentation/documentation/Swift/Optional/publisher-swift.struct>, a ``Just`` publisher always produces a value.
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
23 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
Just.receive(subscriber:)
This declaration needs Swift generic type arguments. (no canonical witness for S)
Just.min()
The containing type needs Swift generic type arguments. (no canonical witness for Output)
Just.max()
The containing type needs Swift generic type arguments. (no canonical witness for Output)
Just.allSatisfy(_:)
callback cannot propagate synchronous failure
Just.compactMap(_:)
callback cannot propagate synchronous failure
Just.min(by:)
callback cannot propagate synchronous failure
Just.max(by:)
callback cannot propagate synchronous failure
Just.prepend(_:)
A variable number of Swift arguments is not supported.
Just.prepend(_:)
This declaration needs Swift generic type arguments. (no canonical witness for S)
Just.append(_:)
A variable number of Swift arguments is not supported.
Just.append(_:)
This declaration needs Swift generic type arguments. (no canonical witness for S)
Just.contains(where:)
callback cannot propagate synchronous failure
Just.drop(while:)
callback cannot propagate synchronous failure
Just.first(where:)
callback cannot propagate synchronous failure
Just.last(where:)
callback cannot propagate synchronous failure
Just.filter(_:)
callback cannot propagate synchronous failure
Just.map(_:)
callback cannot propagate synchronous failure
Just.mapError(_:)
callback cannot propagate synchronous failure
Just.prefix(while:)
callback cannot propagate synchronous failure
Just.reduce(_:_:)
callback cannot propagate synchronous failure
Just.removeDuplicates(by:)
callback cannot propagate synchronous failure
Just.scan(_:_:)
callback cannot propagate synchronous failure
Just.setFailureType(to:)
Passing a Swift type itself is not supported.