Publishes either the most-recent or first element published by the upstream publisher in the specified time interval.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
The interval at which to find and emit the most recent element, expressed in the time system of the scheduler.
The scheduler on which to publish elements.
A Boolean value that indicates whether to publish the most recent element. If
false, the publisher emits the first element received during the interval.
A publisher that emits either the most-recent or first element received during the specified interval.